Good evening. I’m trying to get a `pulumi_kubernet...
# general
c
Good evening. I’m trying to get a
pulumi_kubernetes.apiextensions.CustomResource
resource to wait upon successful completion of specific services in a
pulumi_kubernetes.yaml.ConfigFile
. The CustomResource has ConfigFile listed in
depends_on
, but watching the output of
pulumi up
shows it’s still trying to run before ConfigFile has completed. What am I missing?
This looked to be related, but it’s not clear how it would apply here: https://github.com/pulumi/pulumi/issues/5642
b
ConfigFile
is a ComponentResource with sub resources, but the await logic in the Kubernetes provider doesn't know the status of the application of the sub resources. I'd recommend using kube2pulumi to make the resources in the ConfigFile native resources, and use dependsOn there
c
Thanks!
Unfortunately, kube2pulumi does not work with CRDs
Though there is crd2pulumi