Skip to content

Commit a20e476

Browse files
authored
fix: capture the release namespace value prior to the range function (#8)
1 parent 693d9b8 commit a20e476

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

charts/postgrest/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: postgrest
33
icon: https://docs.postgrest.org/en/v14/_images/postgrest.png
4-
version: 0.2.2
4+
version: 0.2.3
55
maintainers:
66
- name: jared-prime
77

charts/postgrest/templates/database.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
{{ $namespace := .Release.Namespace }}
12
{{- if (not .Values.cluster.enabled) }}
23
{{- range $database := .Values.cluster.databases }}
34
apiVersion: postgresql.cnpg.io/v1
45
kind: Database
56
metadata:
67
name: postgrest
7-
namespace: "{{ .Release.Namespace }}"
8+
namespace: "{{ $namespace }}"
89
spec:
910
{{ $database | toYaml | nindent 2 }}
1011
---

0 commit comments

Comments
 (0)