https://pulumi.com logo
Title
l

lemon-vase-32091

08/10/2021, 7:39 PM
Hi. I am trying to set up
k8s.helm.v3.Chart
with a subchart (kube-prometheus-stack in particular). I am struggling to pass values to a subchart (kube-state-metrics) that is named in kebab-case. As TS wouldn't accept this as a key I tried to pass it quoted, but this doesn't seen to work Is there a magic syntax I am missing here? Thanks!
'kube-state-metrics': {
  collectors: {
    certificatesigningrequests: false,
     mutatingwebhookconfigurations: false,
     }, 
}
b

billowy-army-68599

08/10/2021, 7:56 PM
quoting is the correct way, but I'm not sure how we handle subchat values. pulumi uses
helm template
to render the chart
p

proud-pizza-80589

08/11/2021, 8:03 AM
we do not use the full stack, but for subcharts of prometheus we deploy them separately and in the prometheus chart you can disable deploying the subcharts with a boolean value
l

lemon-vase-32091

08/11/2021, 11:57 AM
Thanks guys, I was able to figure this out... I was trying to define a value that has been added on a newer version. Upgrading the chart version worked it out