Skip to content

Adding check on cd status#969

Closed
visheshtanksale wants to merge 1 commit intokubernetes-sigs:mainfrom
visheshtanksale:cdstatus-check
Closed

Adding check on cd status#969
visheshtanksale wants to merge 1 commit intokubernetes-sigs:mainfrom
visheshtanksale:cdstatus-check

Conversation

@visheshtanksale
Copy link
Copy Markdown
Contributor

@visheshtanksale visheshtanksale commented Mar 30, 2026

Fixes #544

Signed-off-by: Vishesh Tanksale <vtanksale@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Mar 30, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

cd.Status.Status = m.calculateGlobalStatus(cd)

// Validate status invariants: crash loudly if a node index is used more than once.
validateCDStatusNodes(cd)
Copy link
Copy Markdown
Contributor

@jgehrcke jgehrcke Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should do this in the controller.

The original ticket that I believe you are taking reference to was more about an assert-style invariant check in the direct write/update code path.

This may actually be implied as of today, the code evolved a bit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jgehrcke I think this is the code that ensures the index is not duplicate. We dont need this implementation now. Closing this PR

@k8s-triage-robot
Copy link
Copy Markdown

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Apr 2, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: visheshtanksale / name: Vishesh Tanksale (3f5c50c)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Apr 2, 2026
@dims
Copy link
Copy Markdown
Member

dims commented Apr 5, 2026

if we still want to do this, we'll need the CNCF CLA.

@dims dims closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: no Indicates the PR's author has not signed the CNCF CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CD status validation, check for node index being used multiple times

5 participants