-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update RSCT operator status #51
base: main
Are you sure you want to change the base?
Conversation
manju956
commented
Oct 1, 2024
•
edited
Loading
edited
- Update RSCT operator status based on observed status of pods spun by the operator
- Address requirements of the issue Release RSCT Operator #44
- Add required Cluster Service Version fields
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: manju956 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @manju956! It looks like this is your first PR to ocp-power-automation/rsct-operator 🎉 |
9544aa3
to
c8774a0
Compare
c8774a0
to
606b665
Compare
pods := &corev1.PodList{} | ||
|
||
labelSelector := labels.SelectorFromSet(map[string]string{"app": currentDaemonSet.Name}) | ||
listOpts := &client.ListOptions{Namespace: rsct.Namespace, LabelSelector: labelSelector} |
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.
instead of reading the pods, wondering if we can read the state of the daemonset itself and its healthiness
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.
the reason for choosing to inspect pod(s) status instead of daemonset state is because it carries multiple detailed states which are not useful. below is the RSCT daemonset state when its in running condition.
status: currentNumberScheduled: 1 desiredNumberScheduled: 1 numberAvailable: 1 numberMisscheduled: 0 numberReady: 1 observedGeneration: 1 updatedNumberScheduled: 1
c4f36e5
to
e16b880
Compare
Signed-off-by: manju956 <[email protected]> Address review comments Signed-off-by: manju956 <[email protected]>
e16b880
to
703c7bf
Compare