This message was deleted.
s
This message was deleted.
s
b
trying it now. Interestingly I don't see that example in the python docs
doesn't work. at first
pulumi up
seems to work, but it isn't deploying everything in the helm chart. In particular it misses a secret that the controller needs. Then, when I try to run
pulumi up
again I get:
Copy code
pulumi:pulumi:Stack (sindri-devel):
    error: Program failed with an unhandled exception:
    Traceback (most recent call last):
      File "/opt/homebrew/bin/pulumi-language-python-exec", line 192, in <module>
        loop.run_until_complete(coro)
      File "/opt/homebrew/Cellar/python@3.11/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
        return future.result()
               ^^^^^^^^^^^^^^^
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 136, in run_in_stack
        await run_pulumi_func(lambda: Stack(func))
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func
        await wait_for_rpcs()
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 120, in wait_for_rpcs
        raise exception
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/rpc_manager.py", line 71, in rpc_wrapper
        result = await rpc
                 ^^^^^^^^^
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 811, in do_register
        resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 161, in prepare_resource
        explicit_urn_dependencies = await _resolve_depends_on_urns(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/rohan/responsive/sindri/venv/lib/python3.11/site-packages/pulumi/runtime/resource.py", line 1171, in _resolve_depends_on_urns
        all_deps.add(direct_dep)
    TypeError: unhashable type: 'list'
s
hmm looks like a bug. You can submit a GitHub Issue but in the meantime does this work for you? It was the workaround in the past:
Copy code
depends_on=b_controller_chart.resources.apply(lambda resources: list(resources.values())),
https://github.com/pulumi/pulumi-kubernetes/issues/861#issuecomment-901862700
b
ooh I'll try that next. Right now I'm trying:
Copy code
depends_on=[lb_controller_chart.get_resource(
            "apps/v1/Deployment", "kube-system/albctl-aws-load-balancer-controller")]
thanks
p 1
your suggestion has worked so far (done a couple of up/destroy cycles). thanks!
🎉 1
g
Nice one - TIL^ - I haven't had to do a Chart depending on a Chart but I imagine the workaround is because Pulumi isn't natively iterating thru all the resources, just ensuring the original Chart resource is created/ready in the Stack State and doesn't check all of the children?
s
yup pretty much