Browse Source

Resolve illegal base64 data errors

For some versions of Tiller, the newline in Secrets were causing
Tiller to error with illegal base64 data error messages.

Change-Id: Ibd005c9b81e620590b0025bd32da4d589eba91ae
changes/74/618274/1
Craig Anderson 8 months ago
parent
commit
f3a9306404

+ 1
- 2
divingbell/templates/secret-apt.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  apt: |+
28
-{{ tuple "bin/_apt.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  apt: {{ tuple "bin/_apt.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

+ 1
- 2
divingbell/templates/secret-ethtool.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  ethtool: |+
28
-{{ tuple "bin/_ethtool.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  ethtool: {{ tuple "bin/_ethtool.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

+ 1
- 2
divingbell/templates/secret-limits.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  limits: |+
28
-{{ tuple "bin/_limits.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  limits: {{ tuple "bin/_limits.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

+ 1
- 2
divingbell/templates/secret-mounts.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  mounts: |+
28
-{{ tuple "bin/_mounts.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  mounts: {{ tuple "bin/_mounts.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

+ 1
- 2
divingbell/templates/secret-sysctl.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  sysctl: |+
28
-{{ tuple "bin/_sysctl.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  sysctl: {{ tuple "bin/_sysctl.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

+ 1
- 2
divingbell/templates/secret-uamlite.yaml View File

@@ -24,7 +24,6 @@ kind: Secret
24 24
 metadata:
25 25
   name: {{ $secretName }}
26 26
 data:
27
-  uamlite: |+
28
-{{ tuple "bin/_uamlite.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc | indent 4 }}
27
+  uamlite: {{ tuple "bin/_uamlite.sh.tpl" . | include "helm-toolkit.utils.template" | b64enc }}
29 28
 {{- end }}
30 29
 {{- end }}

Loading…
Cancel
Save