From bd830e17a35ac6ce29da86e033deb1a7cf41746a Mon Sep 17 00:00:00 2001 From: Tom Klapiscak <7372253+tomklapiscak@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:04:23 +0100 Subject: [PATCH] try setting via data instead of stringData --- .../templates/01-aws-docdb_Secret.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/applications/90-ibm-sync-resources/templates/01-aws-docdb_Secret.yaml b/applications/90-ibm-sync-resources/templates/01-aws-docdb_Secret.yaml index fdcd17440..8d49ea392 100644 --- a/applications/90-ibm-sync-resources/templates/01-aws-docdb_Secret.yaml +++ b/applications/90-ibm-sync-resources/templates/01-aws-docdb_Secret.yaml @@ -1,7 +1,5 @@ {{- if not (empty .Values.docdb) }} --- -{{ $docdb_port := .Values.docdb.port }} - kind: Secret apiVersion: v1 metadata: @@ -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 }}