I have a simple loop that creates individual names...
# general
I have a simple loop that creates individual namespaces for our devs and it would be great to apply an RBAC template for each of them as part of that process i.e. 1 to 1 dev to namespace RBAC config
add the rbac resources into the loop?
I guess so - I'm mainly asking...you pretty much have to have a directory of YAML's for Pulumi to grab/apply though?
you dont, pulumi should have rbac as a first class resource: https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes/rbac/v1/
which sdk are you using with pulumi
I'm just writing TypeScript
reading the ref now - thanks
going to try to translate a .yml to Pulumi
this is the only example code I find in the examples repo that references the term 'rbac'
And even here I think it's only in the output because the Helm chart includes it
ok moving forward
the mapping between yaml and json should be 1-1
but yeah it can be tricky to convert it a lot of times
figured it out
👍 2