I am trying to install kube-prometheus-stack via i...
# kubernetes
c
I am trying to install kube-prometheus-stack via its helm chart. It creates a couple of crds and I want to create some resources using those crds as well. What’s happening is, the creation of these resources using those crds fails (error - resource of type doesn’t exist) because it somehow executes before the kube-prometheus-stack has finished installing. The kube-prometheus-stack creation and the resources are all in different files. I tried adding
dependsOn
to the custom resources but that does not help. Is there any example where I see dependent k8s resources being created from different files. Also, I am using typescript. Any help is highly appreciated.
b
There's a
.ready
property you can use in the
dependsOn
property. There's an example here https://github.com/pulumi/pulumi-kubernetes/blob/v3.4.0/tests/sdk/nodejs/examples/helm-local/step1/index.ts#L47
c
That did it. Thanks a ton @brave-planet-10645