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

Image pull checker and eviction fix #516

Merged

Conversation

zjhans
Copy link
Collaborator

@zjhans zjhans commented Jun 9, 2020

This commit resolves issues #221 and #473 with the following updates:

  • Adds an external image pull check to test-external-check
  • Adds more in depth PodKill and PodNameExists functions to util package
  • Updates cleanup function:
    -Adds error return to evictPod function
    -Checks for pods that are not in Failed or Succeeded state, instead of only Running state.
    -If evictPod returns an error, run util.PodNameExists and if it returns true, run util.PodKill,
    returning any errors

…h the following updates:

-Adds an external image pull check to the test-external-check
-Adds more in depth PodKill and PodNameExists functions to util package
-Updates cleanup function:
    -Adds error return to evictPod function
    -Adds static 30s grace period to evictPod function
    -Checks for pods that are not in Failed or Succeeded state, instead of only Running state.
    -If evictPod returns an error, run util.PodNameExists and if it returns true, run util.PodKill.
@CLAassistant
Copy link

CLAassistant commented Jun 9, 2020

CLA assistant check
All committers have signed the CLA.

cmd/kuberhealthy/util.go Outdated Show resolved Hide resolved
@integrii
Copy link
Collaborator

@zjhans check the conflicts here and re-submit the PR... I really like your detailed and concise github descriptions.

-Removes the temp fix from cmd/kuberhealthy/util.go and matches it to master
-Makes verbiage updates and usage clarification to cmd/test-external-check/README.md
-Replaces podExists function in pkg/checks/external/util/main.go with updated PodNameExists function from the util package
@zjhans zjhans force-pushed the image-pull-checker-and-eviction-fix branch from d5757a5 to d720ee9 Compare June 12, 2020 21:05
pkg/checks/external/main.go Outdated Show resolved Hide resolved
…external/main.go by removing redundant logging.
…to the evictPod function to reduce nesting and improve readability and clarity.
…ure updates do not unintentionaly bypass this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants