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

Pod monitoring #9

Merged
merged 10 commits into from
Feb 26, 2018
Merged

Pod monitoring #9

merged 10 commits into from
Feb 26, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Feb 20, 2018

This PR adds monitoring of pods with:

  • Update deployment member status Ready condition depending on Pod's Ready status
  • Update deployment state when all pods are ready
  • Recreate pod when it is removed

Copy link
Contributor

@ObiWahn ObiWahn left a 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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@ewoutp ewoutp merged commit 174b449 into master Feb 26, 2018
@ewoutp ewoutp deleted the pod-monitoring branch February 26, 2018 09:24
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.

2 participants