https://pulumi.com logo
#general
Title
# general
c

calm-quill-21760

09/24/2021, 11:57 PM
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

billowy-army-68599

09/25/2021, 12:22 AM
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

calm-quill-21760

09/27/2021, 3:36 PM
Thanks!
Unfortunately, kube2pulumi does not work with CRDs
Though there is crd2pulumi
2 Views