I am trying to incorporate testing of a helm chart in my CI pipeline. Effectively I want to install the chart, wait for all resources to come alive, then run some cypress testing.
Currently I am using helm --wait
and kubectl wait
commands to effectively wait for deployments, pods, etc. The problem is with a customresource I have that creates a deployment, if the customresource has not created the deployment it will get past all of the waiting without resources being ready.
What I'm looking for is a way to effectively wait until Helm has created all resources from the chart - including the customresources.
Has anyone else run through this or a similar problem? So far my best solution is ugly, but involves parsing a helm dry run to see what resources will be created and then calls to kubectl to wait until they exist. Hoping there's a cleaner way to do this...
question from:
https://stackoverflow.com/questions/65854275/kubectl-helm-wait-for-all-resources-to-be-created 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…