Score:0

Terraform Helm set tolerations

fi flag

I'm trying to set tolerations values in Terraform Helm for the occm chart in the following way:

set {
  name = "tolerations"
  value = yamlencode([
    {
      key    = "node.kubernetes.io/test"
      value  = "true"
      effect = "NoSchedule"
    }
  ])
}

And it fails with the following error:

... invalid type for io.k8s.api.core.v1.PodSpec.tolerations: got "string", expected "array"

I tried also with:

set_list {
  name = "tolerations"
  value = [
    yamlencode({
      key    = "node.kubernetes.io/test"
      value  = "true"
      effect = "NoSchedule"
    })
  ]
}

But I get:

... invalid type for io.k8s.api.core.v1.Toleration: got "string", expected "map"

Now I looked to this StackOverflow post, but they use different methods. Is there a way to make it work with set or set_list? What am I doing wrong?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.