https://pulumi.com logo
#kubernetes
Title
# kubernetes
f

few-painting-77267

09/06/2020, 4:29 PM
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

gorgeous-egg-16927

09/08/2020, 4:54 PM
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

few-painting-77267

09/09/2020, 5:40 AM
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

gentle-diamond-70147

09/09/2020, 6:21 AM
f

few-painting-77267

09/09/2020, 6:40 AM
thanks!
4 Views