Hey 🙂 Does the stack in K8s should be in the same namespace as the pulumi-operator itself?
m
millions-artist-91772
01/27/2025, 4:49 PM
nope, with the v2 operator at least stack/workspace/program lives in the "user" namespace.
q
quiet-student-34610
01/28/2025, 7:19 AM
Great. How to handle
PULUMI_ACCESS_TOKEN
in that case? Since stack cannot reference to secrets in different namespace. Create same secrets in all namespaces?
m
millions-artist-91772
01/28/2025, 7:45 AM
yeah, you have to create secrets in the same namespace as the stack (same for git source, etc..). At the end it depends how you manage things, you could also throw all stacks into the same namespace.
q
quiet-student-34610
01/28/2025, 9:02 AM
Thanks for response. One namespace it is then. I'm need to enable developers to create stacks themselves, so I guess I'll need to create a CRD for that or prepare a stack YAML template with those tokens predefined 😄
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.