Hey everyone! I've been working on a Pulumi progra...
# general
j
Hey everyone! I've been working on a Pulumi program that targets a Kubernetes cluster and am a little confused as to how providers work when targeting a Helm chart. On all the other K8s objects (Deployment, Service, etc) I can explicitly set the provider on the CustomResourceOptions but the Helm Chart exposes ComponentResourceOptions which takes a Record of keyed providers. It's not really clear from the docs how these keys are supposed to be used. I just want to ensure that the Helm resource is correctly targeting the Kubernetes instance from my provider but right now I'm seeing it attempt to target whatever context is currently set in my local kubeconfig
w
You can use this by passing
{providers: { kubernetes: k8sProvider}}
See for example https://github.com/pulumi/examples/blob/master/azure-ts-aks-mean/index.ts#L50. We are planning on making this more consistent as part of https://github.com/pulumi/pulumi/issues/1802.
j
Oh wow that's awesome! Thanks for the quick response that's a huge help