sparse-intern-71089
07/18/2023, 12:05 PMfull-eve-52536
07/18/2023, 1:32 PMRelease resource in Pulumi, especially on our ephemeral environments where we are constantly building fresh clusters. Our issues are primarily around not being able to find the CRDs and resources in time, thoughbitter-father-26598
07/18/2023, 1:33 PMbitter-father-26598
07/18/2023, 1:35 PMfull-eve-52536
07/18/2023, 1:36 PMatomic: true and dependencyupdate: True directives and that has help us a little bit, not sure that will help your specific use case though.bitter-father-26598
07/18/2023, 1:36 PMupdate run.curved-kitchen-24115
07/18/2023, 9:26 PMdependsOn: [] can be a little tricky - it just sets up the dependency graph, not a timing aspect. I think you want to use crdb.status but I’m not 100% sure on that.curved-kitchen-24115
07/18/2023, 9:28 PMfull-eve-52536
07/18/2023, 9:30 PMpulumi upcurved-kitchen-24115
07/18/2023, 9:31 PMcrdb.status in the dependsOn… I read that somewhere — but I cannot remember where or whether it worked.
In our case the CRDs we create occur within the <timeout> window that helm.release waits (5m maybe?) so it reconciles itself.curved-kitchen-24115
07/18/2023, 9:32 PMcrdb exists when it is defined, so that passes the dependsOn check immediately. So you want to depend on something that takes time. I think the rationale is that status isn’t ready until the install has occurred.curved-kitchen-24115
07/18/2023, 9:33 PMdependsOn.full-eve-52536
07/18/2023, 9:33 PMRelease resources that we use end up installing the CRDs on their ownfull-eve-52536
07/18/2023, 9:34 PMcrbd.status is and where it's coming fromcurved-kitchen-24115
07/18/2023, 9:34 PMcurved-kitchen-24115
07/18/2023, 9:34 PMhelm.Release ; additionally it’s Resource itself, so you can dependsOn itcurved-kitchen-24115
07/18/2023, 9:35 PMfull-eve-52536
07/18/2023, 9:36 PMcrbd was it's own baked in resource in Pulumifull-eve-52536
07/18/2023, 9:37 PMRelease as part of our stack and almost everytime we run pulumi up We get the server could not find the requested resourcecurved-kitchen-24115
07/18/2023, 9:38 PMhelm.Release.status is an Output; and you can dependsOn those if I remember correctlycurved-kitchen-24115
07/18/2023, 9:40 PMmy-app-package-v1 depends on CRDs defined in my-crd-package-v1, how can you upgrade to my-crd-package-v2 without breaking my-app-package-v1 ?
So, typically, you end up with MyCRD-V1 and MyCRD-v2, etc, and then the app package can decide which one it wants to implement.curved-kitchen-24115
07/18/2023, 9:45 PMbitter-father-26598
07/18/2023, 9:46 PMfull-eve-52536
07/18/2023, 9:47 PMcurved-kitchen-24115
07/18/2023, 9:47 PMbitter-father-26598
07/18/2023, 9:51 PMcreated.