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

fix #3101 making isWatching better reflect health #3269

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

shawkins
Copy link
Contributor

Description

Based upon trying to close out #3101 it seems better to refine the flag behavior so that it will be better as health checks. So now if a non-http gone exception is provided we'll also report running = false. And in the http gone case we won't report anything as wrong until something fails with the re-list/watch.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@centos-ci
Copy link

Can one of the admins verify this patch?

@shawkins shawkins requested review from manusa and rohanKanojia June 24, 2021 11:37
@shawkins shawkins added this to the 5.5.0 milestone Jun 24, 2021
@rohanKanojia
Copy link
Member

rohanKanojia commented Jun 24, 2021

Our sharedindexinformer API has been refactored a lot since past two releases. I think we should review our existing CHEATSHEET doc[0] to see if it's up to date with latest changes. I think we can document these health check methods there too

[0] https://github.com/fabric8io/kubernetes-client/blob/master/doc/CHEATSHEET.md#sharedinformers

@shawkins
Copy link
Contributor Author

@rohanKanojia updated the cheatsheet as well.

@sonarqubecloud
Copy link

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

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

LGTM, thx!

@manusa manusa merged commit f7c8469 into fabric8io:master Jun 29, 2021
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.

5 participants