<#CRVK66N5U|azure> does anyone have idea how to up...
# azure
c
#azure does anyone have idea how to update config map value in k8s from pulumi?
a
Most def. You can use the
@pulumi/kubernetes
provider to do that: https://www.pulumi.com/registry/packages/kubernetes/api-docs/core/v1/configmap/
Which programming language are you using?
There might be a caveat though: the k8s provider enforces resource replacement when specific properties change. For instance, when a secret’s data is modified the secret resource is replaced altogether.
c
I am using typescript. Here i can create config map but unable update one of its value later. For example in config map i create env value test = abcd and I need to change that to test = drfg but its not possible with pulumi.
@astonishing-exabyte-93491 any suggestion?
f
The dynamic data must be passed to the CM constructor, I can't tell whether it forces resource replacement or not. Mind sharing your code?
a
c
Ohh Thanks @astonishing-exabyte-93491 I will try this. Will give you sample code to get an idea about my problem.