https://pulumi.com logo
#general
Title
# general
o

orange-tailor-85423

10/24/2018, 4:10 PM
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
b

busy-umbrella-36067

10/24/2018, 4:14 PM
add the rbac resources into the loop?
o

orange-tailor-85423

10/24/2018, 4:17 PM
I guess so - I'm mainly asking...you pretty much have to have a directory of YAML's for Pulumi to grab/apply though?
b

busy-umbrella-36067

10/24/2018, 4:22 PM
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
o

orange-tailor-85423

10/24/2018, 5:11 PM
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
b

busy-umbrella-36067

10/24/2018, 8:47 PM
the mapping between yaml and json should be 1-1
but yeah it can be tricky to convert it a lot of times
o

orange-tailor-85423

10/24/2018, 8:47 PM
figured it out
👍 2