Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k 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

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...