helm-controller
helm-controller copied to clipboard
Multiline strings can not be set
Using multiline strings in settings like:
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: linkerd2
namespace: kube-system
spec:
chart: linkerd2
version: 2.7.1
repo: https://helm.linkerd.io/stable
set:
global.identityTrustAnchorsPEM: |
-----BEGIN CERTIFICATE-----
MIIBljCCATugAwIBAgIQIrPA+fc+QTyBy6HYDQ53KzAKBggqhkjOPQQDAjApMScw
JQYDVQQDEx5pZGVudGl0eS5saW5rZXJkLmNsdXN0ZXIubG9jYWwwHhcNMjAwNTI1
...
-----END CERTIFICATE-----
results in: Error: bad flag syntax: -----END the string argument in the command contains spaces at the line breaks:
helm_v3 install --repo https://helm.linkerd.io/stable --version 2.7.1 --set-string global.identityTrustAnchorsPEM=-----BEGIN CERTIFICATE----- MIIBljCCATugAwIBAgIQIrPA+fc+QTyBy6HYDQ53KzAKBggqhkjOPQQDAjApMScw JQYDVQQDEx5pZGVudGl0eS5saW5rZXJkLmNsdXN0ZXIubG9jYWwwHhcNMjAwNTI1...