https://pulumi.com logo
c

chilly-photographer-60932

02/13/2019, 8:06 PM
We have
k8s
service spun using
helm
chart and pulumi. The helm chart does not expose
loadBalancerSourceRanges
for the service definition. We would like to update the service with
loadBalancerSourceRanges
. What is the best way to do it? It is similar to
kubectl edit service
w

white-balloon-205

02/13/2019, 8:10 PM
There's a
transformations
option you can pass on a
new Chart
in Pulumi to get a chance to modify any of the resources created by the Helm chart prior to deploying them with Pulumi. It's a bit of a blunt hammer, but useful for exactly this sort of scenario. See https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes/v2/#BaseChartOpts-transformations. The other alternative - common in the Helm world - would be forking the chart to expose this option.
c

chilly-photographer-60932

02/13/2019, 8:10 PM
We don’t want to fork because it is istio’s base chart.
They have it in the
1.1
release.
g

gorgeous-egg-16927

02/13/2019, 8:13 PM
FYI, here's an example where we're using transformations to change the namespace and edit the Services in an upstream helm chart: https://github.com/pulumi/pulumi-kubernetes/blob/e4fa04b13a20929c879aca1bbe58fb5a95d16f7c/examples/helm/index.ts#L34-L52
c

chilly-photographer-60932

02/13/2019, 11:39 PM
That took care of. Thanks guys!
👍 1
2 Views