-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add CreateContainerError and InvalidImageName waiting reasons #763
Conversation
Welcome @jdewald! |
internal/collector/pod.go
Outdated
@@ -34,7 +34,7 @@ const nodeUnreachablePodReason = "NodeLost" | |||
|
|||
var ( | |||
descPodLabelsDefaultLabels = []string{"namespace", "pod"} | |||
containerWaitingReasons = []string{"ContainerCreating", "CrashLoopBackOff", "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff"} | |||
containerWaitingReasons = []string{"ContainerCreating", "CrashLoopBackOff", "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff","CreateContainerError","InvalidImageName"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there needs to be spaces after the commas.
containerWaitingReasons = []string{"ContainerCreating", "CrashLoopBackOff", "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff","CreateContainerError","InvalidImageName"} | |
containerWaitingReasons = []string{"ContainerCreating", "CrashLoopBackOff", "CreateContainerConfigError", "ErrImagePull", "ImagePullBackOff", "CreateContainerError", "InvalidImageName"} |
@jdewald Welcome and Thank you very much for contributing :). I think the failing unit tests need to be taken care of. PR looks good otherwise. |
Also, please don't forget to squash your commit history after making the required changes. |
@tariq1890 Thanks! I totally should have run the linting before I committed! |
Applying squash now |
It looks like test is failing, though it passed locally. Seeing if I can reproduce. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brancz, jdewald, tariq1890 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Adds 'CreateContainerError' and 'InvalidImageName' to the available container waiting reasons, which we need visibility into in our production environment