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 }}