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

MOD:change string contain 'not found' to k8s error #433

Merged
merged 1 commit into from Apr 23, 2020

Conversation

calmkart
Copy link
Contributor

change error in k8s api return strings.Contains(err.Error(), "not found") to k8sErrors.IsNotFound(err)
the k8sErrors "k8s.io/apimachinery/pkg/api/errors" can easily classify the cause of the error int k8s api.

@jonnydawg
Copy link
Collaborator

Whoa, thanks for making this change! I did not know this was available. I will quickly do some testing on this.

Copy link
Collaborator

@jonnydawg jonnydawg left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

@jonnydawg jonnydawg merged commit f506187 into kuberhealthy:master Apr 23, 2020
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.

None yet

2 participants