Helm: How to Override Value with Periods in Name

后端 未结 2 627
名媛妹妹
名媛妹妹 2021-02-07 06:37

I am trying to script setup of Jenkins so that I can create and tear down Jenkins clusters programmatically with helm. I\'ve hit an annoying snag where I cannot set a key with d

相关标签:
2条回答
  • 2021-02-07 06:43

    You need to enclose the key with quotations and then escape the dots

    helm install --values helm/jenkins.yml stable/jenkins --set Master.Ingress.Annotations."certmanager\.k8s\.io/cluster-issuer"=letsencrypt-staging
    
    0 讨论(0)
  • 2021-02-07 07:03

    Use \ to escape the dots in the key. Quotation marks are required to prevent shell interpreting the \ character.

    helm install --values helm/jenkins.yml stable/jenkins --set 'Master.Ingress.Annotations.certmanager\.k8s\.io/cluster-issuer=letsencrypt-staging'
    

    Helm requires these characters to be escaped: . [ , =

    Source: https://paul-boone.medium.com/helm-chart-install-advanced-usage-of-the-set-argument-3e214b69c87a

    0 讨论(0)
提交回复
热议问题