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

Treat 404 errors from Kubernetes API as missing values #93

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Treat 404 errors from Kubernetes API as missing values #93

merged 1 commit into from
Nov 15, 2021

Conversation

jakobmerrild
Copy link
Contributor

Rather than relying on the message returned from the kubernetes api
being exactly "Not Found" we now also treat HTTP code 404 as a
missing configuration value. This is much more robust to changes
as it is unlikely that the HTTP status code spec will change while
kubernetes can decide to change the error message at any point in
time.

Rather than relying on the message returned from the kubernetes api
being exactly "Not Found" we now also treat HTTP code 404 as a
missing configuration value. This is much more robust to changes
as it is unlikely that the HTTP status code spec will change while
kubernetes can decide to change the error message at any point in
time.
@rmorais
Copy link
Contributor

rmorais commented Nov 12, 2021

This is a good change. Thanks for the PR!

@rmorais rmorais merged commit 8681c4d into ovotech:master Nov 15, 2021
rmorais pushed a commit that referenced this pull request Nov 19, 2021
Rather than relying on the message returned from the kubernetes api
being exactly "Not Found" we now also treat HTTP code 404 as a
missing configuration value. This is much more robust to changes
as it is unlikely that the HTTP status code spec will change while
kubernetes can decide to change the error message at any point in
time.
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.

2 participants