Skip to content

Update node-labeling-controller to watch for singleton CR create/update events - #2704

Merged
cdesiniotis merged 1 commit into
NVIDIA:mainfrom
cdesiniotis:watch-create-events-in-nlc
Aug 1, 2026
Merged

Update node-labeling-controller to watch for singleton CR create/update events#2704
cdesiniotis merged 1 commit into
NVIDIA:mainfrom
cdesiniotis:watch-create-events-in-nlc

Conversation

@cdesiniotis

@cdesiniotis cdesiniotis commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Description

This fixes an issue where the operator starts running before a ClusterPolicy or GPUCluster CR has been created. The node-labeling-controller's first reconciliation will not add any labels to GPU nodes. It won't reconcile again until after a singleton CR has been created and updated at least once. The controller should reconcile, and label nodes, as soon as one of these CRs is created.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Manually tested on single node GPU cluster.

@cdesiniotis cdesiniotis self-assigned this Jul 31, 2026
@cdesiniotis
cdesiniotis marked this pull request as ready for review July 31, 2026 18:11
…te events

This fixes an issue where the operator starts running before a ClusterPolicy
or GPUCluster CR has been created. The node-labeling-controller's first
reconciliation will not add any labels to GPU nodes. It won't reconcile
again until after a singleton CR has been created and updated at least once.
The controller should reconcile, and label nodes, as soon as one of these
CRs is created.

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
@cdesiniotis
cdesiniotis force-pushed the watch-create-events-in-nlc branch from e78d5e1 to 7b8dcad Compare July 31, 2026 18:25
@cdesiniotis
cdesiniotis merged commit 95bbd3e into NVIDIA:main Aug 1, 2026
19 of 20 checks passed
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