diff --git a/charts/postgrest/Chart.yaml b/charts/postgrest/Chart.yaml index 3effb04..86e558f 100644 --- a/charts/postgrest/Chart.yaml +++ b/charts/postgrest/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: postgrest icon: https://docs.postgrest.org/en/v14/_images/postgrest.png -version: 0.2.2 +version: 0.2.3 maintainers: - name: jared-prime email: jared.davis@pelo.tech diff --git a/charts/postgrest/templates/database.yaml b/charts/postgrest/templates/database.yaml index 037cbcc..5099506 100644 --- a/charts/postgrest/templates/database.yaml +++ b/charts/postgrest/templates/database.yaml @@ -1,10 +1,11 @@ +{{ $namespace := .Release.Namespace }} {{- if (not .Values.cluster.enabled) }} {{- range $database := .Values.cluster.databases }} apiVersion: postgresql.cnpg.io/v1 kind: Database metadata: name: postgrest - namespace: "{{ .Release.Namespace }}" + namespace: "{{ $namespace }}" spec: {{ $database | toYaml | nindent 2 }} ---