Skip to content

Commit 742bae9

Browse files
authored
don't quote username/password before piping to b64enc (#616)
An alternate fix to that proposed in #613 to avoid adding quotes around the docker registry username/password.
1 parent 7b334f7 commit 742bae9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

helm/openwhisk/templates/ow-docker-registry-secret.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616
#
1717

18+
{{- if ne .Values.docker.registry.name "" }}
1819
apiVersion: v1
1920
kind: Secret
2021
metadata:
@@ -23,5 +24,6 @@ metadata:
2324
{{ include "openwhisk.label_boilerplate" . | indent 4 }}
2425
type: Opaque
2526
data:
26-
docker_registry_username: {{ .Values.docker.registry.username | quote | b64enc }}
27-
docker_registry_password: {{ .Values.docker.registry.password | quote | b64enc }}
27+
docker_registry_username: {{ .Values.docker.registry.username | b64enc }}
28+
docker_registry_password: {{ .Values.docker.registry.password | b64enc }}
29+
{{- end -}}

0 commit comments

Comments
 (0)