Does anyone know how to set the security context w...
# kubernetes
v
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
It's completely variable. Some charts won't even expose it. It's not really a 'pulumi' thing.
v
That is what I figured. Thanks.
b
@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
@billowy-army-68599 can you point me to a python example of this?
b
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
That is really helpful. so I basically have to find the object attribute and manipulate.
with my transformation function.
That seems straightforward.
b
Yep!
v
Thanks!!!