apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

labels:
- includeTemplates: true
  pairs:
    app.kubernetes.io/name: pgo
    # The version below should match the version on the PostgresCluster CRD
    app.kubernetes.io/version: 5.4.3
    postgres-operator.crunchydata.com/control-plane: postgres-operator

images:
- name: postgres-operator
  newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
  newTag: ubi8-5.4.3-0 

resources:
  - resources/namespace.yaml
  - resources/crd/postgresclusters.yaml
  - resources/crd/pgupgrades.yaml
  - resources/rbac/service_account.yaml
  - resources/rbac/role.yaml
  - resources/rbac/role_binding.yaml
  - resources/manager.yaml
  - resources/db/default-cluster.yaml

generators:
  - ./secret-generator.yaml