https://pulumi.com logo
Title
d

dry-engine-17210

01/25/2021, 9:09 PM
Hello, I'm trying to use
pulumi_kubernetes.helm.v3
--
Chart()
specifically. How does one pass in a specific k8s provider?
splunk_connect_for_kubernetes = Chart(
        "splunk-connect-for-kubernetes-chart",
        ChartOpts(
            chart="splunk-connect-for-kubernetes",
            version="1.4.4",
            namespace="splunk",
            fetch_opts=FetchOpts(
                repo="<https://splunk.github.io/splunk-connect-for-kubernetes/>",
            ),
        ),
    )
Err, okay, I think I figured it out. I was seeing examples of using opt to set an explicit provider in other documentation. However, looking at source code seems it imply opts is an old, deprecated thing and to just use opts to pass it.
g

gentle-diamond-70147

01/26/2021, 7:57 AM
I believe with
opts=ResourceOptions(providers={"kubernetes"=k8s_provider})
(might not be exactly that, I'm not able to confirm it right this second)
d

dry-engine-17210

01/26/2021, 4:25 PM
Yup! I got caught up in (bad?) examples sending me on the wrong path. https://github.com/pulumi/examples/blob/master/gcp-py-gke/__main__.py#L85
I think those examples should probably be updated to use
opts
rather than
__opts__
g

gentle-diamond-70147

01/26/2021, 5:27 PM