helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

Multiline strings can not be set

Open cubic3d opened this issue 5 years ago • 0 comments

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

cubic3d avatar May 25 '20 10:05 cubic3d