https://pulumi.com logo
Title
v

victorious-exabyte-70545

12/14/2021, 9:27 PM
Does anyone know how to set the security context when using the pulumi_kubernetes.helm.v3.Chart resoure? I know that it can very from chart to chart but is there a standard way to achieve this with the pulumi chart resource? Thanks.
w

wonderful-twilight-70958

12/14/2021, 9:45 PM
It's completely variable. Some charts won't even expose it. It's not really a 'pulumi' thing.
v

victorious-exabyte-70545

12/14/2021, 10:06 PM
That is what I figured. Thanks.
b

billowy-army-68599

12/14/2021, 11:52 PM
@victorious-exabyte-70545 yes transformations is the way to do it
You can manipulate charts to have whatever you need with transformations, they’re super powerful
v

victorious-exabyte-70545

12/14/2021, 11:52 PM
@billowy-army-68599 can you point me to a python example of this?
b

billowy-army-68599

12/14/2021, 11:53 PM
Not of security contexts specifically, but here’s a python helm chart transformation example: https://github.com/jaxxstorm/pulumi-nginx-demo/blob/main/nginx-ingress/__main__.py
v

victorious-exabyte-70545

12/14/2021, 11:57 PM
That is really helpful. so I basically have to find the object attribute and manipulate.
with my transformation function.
That seems straightforward.
b

billowy-army-68599

12/15/2021, 12:21 AM
Yep!
v

victorious-exabyte-70545

12/15/2021, 12:34 AM
Thanks!!!