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
Prev Previous commit
Minor text change
  • Loading branch information
ewoutp committed Feb 26, 2018
commit a682223205d957e86cb819eaf827a3e8a7ca72b1
2 changes: 1 addition & 1 deletion pkg/apis/arangodb/v1alpha/deployment_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (l MemberStatusList) ContainsID(id string) bool {
}

// 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.

// If no such element exists, false is returned.
// If no such element exists, an empty element and false is returned.
func (l MemberStatusList) ElementByPodName(podName string) (MemberStatus, bool) {
for i, x := range l {
if x.PodName == podName {
Expand Down