https://pulumi.com logo
Title
f

famous-kite-69533

11/03/2020, 10:39 PM
Hi 🙂 Is it possible with Pulumi to update an existing config map? I have a chart (Nginx ingress) that creates a config map, and soo after I want to add keys to that configmap. I know how to create a cm with Pulumi but not this. Thanks!
g

gorgeous-egg-16927

11/03/2020, 10:44 PM
Yep, just update the resource definition and run a
pulumi up
.
f

famous-kite-69533

11/04/2020, 9:38 AM
Hi @gorgeous-egg-16927 I am not sure I am following. If I add a `
new k8s.core.v1.ConfigMap
block Pulumi tries to create that config map but it already exists, because it was created by the helm chart. I just want to be able to update the data of that config map, not create it. What did I misunderstand? 🙂
The example you linked to creates the config map explicitly first, and then references it in the Nginx deployment. It's not the same thing, is it?
g

gorgeous-egg-16927

11/04/2020, 3:53 PM
Oh, sorry. I didn’t notice you were using Helm for this. Depending on the chart, you should be able to make changes either through the chart config (values), or with a transformation. https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/chart/#set-chart-values https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/chart/#chart-with-transformations
f

famous-kite-69533

11/04/2020, 3:56 PM
Thanks, will read it and hopefully understand it 😄