Skip to content

Commit

Permalink
plug the new functionality in to updateStatus()
Browse files Browse the repository at this point in the history
The new functionality runs alongside of the existing status reporting
for the time being.

Signed-off-by: Pavel Mores <pmores@redhat.com>
  • Loading branch information
pmores committed Jun 30, 2023
1 parent 0c66d5e commit e393a19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/openshift_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@ func (r *KataConfigOpenShiftReconciler) updateStatus() error {

r.clearInstallStatus()
r.clearUninstallStatus()
r.clearNodeStatusLists()

r.kataConfig.Status.TotalNodesCount = func() int {
err, nodes := r.getNodesWithLabels(r.getNodeSelectorAsMap())
Expand All @@ -1817,6 +1818,9 @@ func (r *KataConfigOpenShiftReconciler) updateStatus() error {

for _, node := range nodeList.Items {
if annotation, ok := node.Annotations["machineconfiguration.openshift.io/state"]; ok {

r.putNodeOnStatusList(&node)

switch annotation {
case NodeDone:
e := r.processDoneNode(&node)
Expand Down

0 comments on commit e393a19

Please sign in to comment.