Skip to content

Commit

Permalink
try setting via data instead of stringData
Browse files Browse the repository at this point in the history
  • Loading branch information
tomklapiscak committed Apr 30, 2024
1 parent 5bdbccf commit bd830e1
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{- if not (empty .Values.docdb) }}
---
{{ $docdb_port := .Values.docdb.port }}

kind: Secret
apiVersion: v1
metadata:
Expand All @@ -10,12 +8,12 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "01"
avp.kubernetes.io/remove-missing: "true"
stringData:
docdb_master_username: {{ .Values.docdb.master_username }}
docdb_master_password: {{ .Values.docdb.master_password }}
docdb_master_info: {{ .Values.docdb.master_info }}
docdb_instance_password: {{ .Values.docdb.instance_password }}
docdb_host: {{ .Values.docdb.host }}
docdb_port: "{{ $docdb_port }}"
data:
docdb_master_username: {{ .Values.docdb.master_username | b64enc }}
docdb_master_password: {{ .Values.docdb.master_password | b64enc }}
docdb_master_info: {{ .Values.docdb.master_info | b64enc }}
docdb_instance_password: {{ .Values.docdb.instance_password | b64enc }}
docdb_host: {{ .Values.docdb.host | b64enc }}
docdb_port: {{ .Values.docdb.port | toString | b64enc }}
type: Opaque
{{- end }}

0 comments on commit bd830e1

Please sign in to comment.