Skip to content

bug fix: prevent auto-mnnvl annotation injection on update#420

Merged
shmuel-runai merged 1 commit into
ai-dynamo:mainfrom
shmuel-runai:grove-416/fix-update-annonation
Feb 15, 2026
Merged

bug fix: prevent auto-mnnvl annotation injection on update#420
shmuel-runai merged 1 commit into
ai-dynamo:mainfrom
shmuel-runai:grove-416/fix-update-annonation

Conversation

@shmuel-runai

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

The defaulting webhook called MutateAutoMNNVL unconditionally for both CREATE and UPDATE operations. For legacy PCS resources created before the MNNVL feature, this caused a deadlock: the defaulting webhook added the annotation on update, and the validating webhook rejected it as a forbidden post-creation addition — making the resource unmodifiable (e.g., finalizer removal was blocked during deletion).

Gate MutateAutoMNNVL to only run on CREATE operations and add unit tests covering UPDATE operations and the full webhook pipeline for the legacy PCS migration scenario.

Tested

  • manually
  • add UT

Which issue(s) this PR fixes:

Fixes #416

Special notes for your reviewer:

NONE

…on updates

The defaulting webhook called MutateAutoMNNVL unconditionally for both
CREATE and UPDATE operations. For legacy PCS resources created before
the MNNVL feature, this caused a deadlock: the defaulting webhook added
the annotation on update, and the validating webhook rejected it as a
forbidden post-creation addition — making the resource unmodifiable
(e.g., finalizer removal was blocked during deletion).

Gate MutateAutoMNNVL to only run on CREATE operations and add unit tests
covering UPDATE operations and the full webhook pipeline for the legacy
PCS migration scenario.
@copy-pr-bot

copy-pr-bot Bot commented Feb 10, 2026

Copy link
Copy Markdown

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.

@shayasoolin shayasoolin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I might be missing something here, but after this change - what prevents the deletion/addition of the annotation, from new pcs yamls? Not legacy ones, I'm talking about the basic prevention of add/remove of this annotation post creation.

@shmuel-runai shmuel-runai merged commit b9c0f96 into ai-dynamo:main Feb 15, 2026
10 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.

Validation webhook prevents finalizer removal for PodCliqueSets created before auto-mnnvl feature

3 participants