https://pulumi.com logo
i

important-leather-28796

03/11/2019, 6:49 PM
I need to add a label to an existing namespace, the kubectl equivalent:
Copy code
kubectl label namespace <deployment-namespace> <http://certmanager.k8s.io/disable-validation=%22true%22|certmanager.k8s.io/disable-validation="true">
How can I add I mutate the namespace labels from my pulumi code?
c

creamy-potato-29402

03/11/2019, 7:25 PM
what do you mean, “mutate”? are you using the YAML API? you can use the
transformations
option
i

important-leather-28796

03/11/2019, 7:26 PM
I create a namespace as a pre-req, later I am deploying a CertManager component, but that
Component
needs a label on the namespace. In order to separate concerns, I’d like to keep this code inside the component, not go back to where I declare the namespace and start adding it there
I’m just trying to keep with code encapsulation
c

creamy-potato-29402

03/11/2019, 7:48 PM
@important-leather-28796 so, the answer is, you can’t mutate it in this way.
But as I said in another place, I’d actually deploy certmanager in your infra stack. It’s super important, it’s not an app.
👍 1