-
Notifications
You must be signed in to change notification settings - Fork 73
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
Pod monitoring #9
Conversation
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
return true | ||
} | ||
|
||
// Remove the condition with given type. |
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.
// Remove first condition of given type.
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.
I leave it as is, since the Update
function ensures that there is only 1 condition of a given type at all times.
@@ -99,6 +195,17 @@ func (l MemberStatusList) ContainsID(id string) bool { | |||
return false | |||
} | |||
|
|||
// ElementByPodName returns the element in the given list that has the given pod name and true. |
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.
searches for first MemberStatus whose name matches a given string. If such a status it found a (status, true) is returned, otherwise (MemberStatus{},false) is returned.
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.
Changed text a bit different.
This PR adds monitoring of pods with: