Hello! I have an interesting problem: I want to se...
# kubernetes
f
Hello! I have an interesting problem: I want to set labels to the existing default NS - what is the best way to do it? How can I import and update existing resource?
g
The current workflow for that is a bit clunky. You can do a two-step update: 1. Import the namespace 2. On a subsequent update, change the resource definition to your target state and run another update Alternatively, you could shell out to
kubectl
or a native k8s client in a “dynamic provider” workflow. This is related: https://github.com/pulumi/pulumi-kubernetes/issues/264
f
Yeah, that what I figured - can you share the docs to running native k8s client commands? I subscribed to the issue, look like our exact problem
g
f
thanks!