Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop deploys if ClusterResourceDiscovery's kubectl calls fail #701

Merged
merged 2 commits into from
Feb 25, 2020

Conversation

dturn
Copy link
Contributor

@dturn dturn commented Feb 19, 2020

What are you trying to accomplish with this PR?

Currently we allow the kubectl calls in ClusterResourceDiscovery to fail with only warnings logged. However, this leads to funky behavior. We should have consistent and safe behavior.

Closes: #681

How is this accomplished?
Raise an error to stop the deploy if kubectl calls fail.

What could go wrong?
We could block deploys when the cluster is partially unhealthy (e.g. the external metric server is down).

@dturn dturn requested review from DazWorrall, KnVerey and a team as code owners February 19, 2020 18:28
@dturn dturn force-pushed the resource-discovery-kubectl-failures branch from 1e8b1d4 to e4ce2a5 Compare February 19, 2020 21:33
@dturn dturn force-pushed the resource-discovery-kubectl-failures branch from e4ce2a5 to c7ce382 Compare February 19, 2020 21:47
Copy link
Contributor

@timothysmith0609 timothysmith0609 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@dturn dturn merged commit 726ccd0 into master Feb 25, 2020
@dturn dturn deleted the resource-discovery-kubectl-failures branch February 25, 2020 18:31
KnVerey pushed a commit that referenced this pull request Apr 13, 2020
* Stop deploys if ClusterResourceDiscovery's kubectl calls fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClusterResourceDiscovery's kubectl calls should fail deploys on failure
3 participants