Skip to content

Commit

Permalink
chore: Change reason to NodeClassNotFound to match NodeNotFound (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Aug 7, 2024
1 parent b22b0fe commit 75944ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/nodepool/readiness/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (c *Controller) Reconcile(ctx context.Context, nodePool *v1.NodePool) (reco
return reconcile.Result{}, err
}
if nodeClass == nil {
nodePool.StatusConditions().SetFalse(v1.ConditionTypeNodeClassReady, "UnresolvedNodeClass", "Unable to resolve nodeClass")
nodePool.StatusConditions().SetFalse(v1.ConditionTypeNodeClassReady, "NodeClassNotFound", "NodeClass not found on cluster")
} else if !nodeClass.GetDeletionTimestamp().IsZero() {
nodePool.StatusConditions().SetFalse(v1.ConditionTypeNodeClassReady, "NodeClassTerminating", "NodeClass is Terminating")
} else {
Expand Down

0 comments on commit 75944ee

Please sign in to comment.