From 1b644036f85bc31a1eea6964cc1619315a769204 Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Thu, 17 Oct 2019 16:57:17 -0700 Subject: [PATCH] Ensure caBundle is set to string Without this change, we output: caBundle: when .Values.connectInject.certs.caBundle is empty instead of caBundle: "" I can't reproduce the issue (#213) however I'm guessing this may be the cause if Kubernetes is treating this as null instead of the empty string. --- templates/connect-inject-mutatingwebhook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/connect-inject-mutatingwebhook.yaml b/templates/connect-inject-mutatingwebhook.yaml index 4138895c51..2ca5762456 100644 --- a/templates/connect-inject-mutatingwebhook.yaml +++ b/templates/connect-inject-mutatingwebhook.yaml @@ -17,7 +17,7 @@ webhooks: name: {{ template "consul.fullname" . }}-connect-injector-svc namespace: {{ .Release.Namespace }} path: "/mutate" - caBundle: {{ .Values.connectInject.certs.caBundle }} + caBundle: {{ .Values.connectInject.certs.caBundle | quote }} rules: - operations: [ "CREATE" ] apiGroups: [""]