https://pulumi.com logo
#kubernetes
Title
# kubernetes
s

some-elephant-30417

03/12/2021, 8:29 AM
Hi! I am trying to do this to fetch a chart from https://helm.dask.org/.
Copy code
dask = helm.v3.Chart(
        f'dask-helm-{resource_suffix}',
        config=k8s.helm.v3.ChartOpts(
            chart='dask',
            repo='dask',
            version='4.5.7',
            fetch_opts=k8s.helm.v3.FetchOpts(
                repo='<https://helm.dask.org>',
            ),
        ),
        opts=pulumi.ResourceOptions(
            providers={ 'kubernetes': k8s_provider },
        ),
    )
But I get this error:
Copy code
error: Program failed with an unhandled exception:
    error: Traceback (most recent call last):
      File "/home/alexandre/.pyenv/versions/daks/lib/python3.9/site-packages/pulumi/runtime/invoke.py", line 110, in do_invoke
        return monitor.Invoke(req)
      File "/home/alexandre/.pyenv/versions/daks/lib/python3.9/site-packages/grpc/_channel.py", line 923, in __call__
        return _end_unary_response_blocking(state, call, False, None)
      File "/home/alexandre/.pyenv/versions/daks/lib/python3.9/site-packages/grpc/_channel.py", line 826, in _end_unary_response_blocking
        raise _InactiveRpcError(state)
    grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    	status = StatusCode.UNKNOWN
    	details = "invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: chart "dask/dask" version "4.5.7" not found in <https://helm.dask.org> repository"
    	debug_error_string = "{"created":"@1615537561.526221208","description":"Error received from peer ipv4:127.0.0.1:38703","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: chart "dask/dask" version "4.5.7" not found in <https://helm.dask.org> repository","grpc_status":2}"
I tried many variations of the
Chart
parameters without success. Any idea? Thank you!
b

broad-helmet-79436

03/12/2021, 9:54 AM
I don’t know for sure, but have you tried dropping the
repo
option completely and setting just the
fetch_opts.repo
one?
s

some-elephant-30417

03/12/2021, 11:20 AM
shit. that worked! thanks a lot
g

gorgeous-egg-16927

03/12/2021, 5:26 PM
Sorry for the confusion there. We actually just fixed that issue this week: https://github.com/pulumi/pulumi-kubernetes/pull/1491
🙌 1
b

broad-helmet-79436

03/12/2021, 9:19 PM
I’m glad!
35 Views