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

resources:
  - resources/namespace.yaml
  - resources/secrets/ext-pgo-creds.yaml
  - resources/secrets/ext-pgo-admin.yaml

helmCharts:
  - releaseName: cnpg
    name: cloudnative-pg
    repo: https://cloudnative-pg.github.io/charts
    version: 0.22.1
    valuesFile: config/values.cnpg.yaml
    namespace: postgres-system
    includeCRDs: true

  - releaseName: ext-pgo
    name: ext-postgres-operator
    repo: https://movetokube.github.io/postgres-operator/
    version: 1.2.6
    valuesFile: config/values.ext-pgo.yaml
    namespace: postgres-system
    includeCRDs: true