How do I append my value to a list of Helm default values in Terraform's HCL?

5/12/2020

I've deployed a Jenkins instance through Helm using a Terraform configuration file. Now I'd like to add an additional plugin to my Jenkins instance. Helm allows us to do this by adding the docker-workflow:2.150.3 value to the master.installPlugins variable list.

resource "helm_release" "jenkins" {

  # ...

  set {
    name  = "master.installPlugins"
    value = "docker-workflow:2.150.3"
  }

}

Trouble is that according to the chart's documentation there are already a lot default values to this list. I could harcode the dependencies in the list, but is there a way to avoid that and refer the values from the chart, incase they are updated in the future?

-- Amin Shah Gilani
kubernetes-helm
terraform

0 Answers