Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
928 views
in Technique[技术] by (71.8m points)

continuous integration - Kubectl / Helm wait for all resources to be created

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to JiKe DevOps Community for programmer and developer-Open, Learning and Share
...