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

feat: Add K8s API communication check on startup #387

Merged
merged 2 commits into from
Jan 9, 2022

Conversation

mikesmithgh
Copy link
Collaborator

The purpose of this PR is to avoid container restarts on startup when metacontroller is in a service mesh (istio, kuma, etc). If the service mesh sidecar takes longer to come up than metacontroller, then metacontroller will have container restarts. The K8s API healthcheck lets us know that the sidecar is properly communicating and the API server is healthy.

@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #387 (1244b2a) into master (d5014ac) will increase coverage by 0.00%.
The diff coverage is 42.30%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #387   +/-   ##
=======================================
  Coverage   49.80%   49.80%           
=======================================
  Files          54       54           
  Lines        4883     4905   +22     
=======================================
+ Hits         2432     2443   +11     
- Misses       2202     2212   +10     
- Partials      249      250    +1     
Flag Coverage Δ
integration 43.15% <68.75%> (+0.08%) ⬆️
unit 28.60% <0.00%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
main.go 0.00% <0.00%> (ø)
pkg/server/server.go 56.06% <68.75%> (+4.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5014ac...1244b2a. Read the comment docs.

@mikesmithgh mikesmithgh marked this pull request as draft November 11, 2021 17:27
@mikesmithgh mikesmithgh changed the title feat: Add K8s API healthcheck on startup feat: Add K8s API communication check on startup Jan 5, 2022
Signed-off-by: Mike Smith <10135646+mjsmith1028@users.noreply.github.com>
@mikesmithgh mikesmithgh marked this pull request as ready for review January 5, 2022 16:40
pkg/server/server.go Outdated Show resolved Hide resolved
pkg/server/server.go Outdated Show resolved Hide resolved
Signed-off-by: Mike Smith <10135646+mjsmith1028@users.noreply.github.com>
@grzesuav grzesuav merged commit 52693dc into metacontroller:master Jan 9, 2022
@grzesuav
Copy link
Contributor

grzesuav commented Jan 9, 2022

🎉 This PR is included in version 2.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants