Skip to content

Auto-MNNVL: Update PCS's webhook support auto-mnnvl#370

Merged
shmuel-runai merged 3 commits into
ai-dynamo:mainfrom
shmuel-runai:RUN-35357/main-mnnvl-pcs-webhook
Jan 28, 2026
Merged

Auto-MNNVL: Update PCS's webhook support auto-mnnvl#370
shmuel-runai merged 3 commits into
ai-dynamo:mainfrom
shmuel-runai:RUN-35357/main-mnnvl-pcs-webhook

Conversation

@shmuel-runai

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Mutating webhook (on create):

  • Automatically adds grove.io/auto-mnnvl: "true" annotation when MNNVL is globally enabled and PCS requests GPUs
  • Respects existing annotation values (allows opt-out with "false")

Validating webhook (on create):

  • Rejects PCS with auto-mnnvl: "true" if MNNVL feature is disabled

Validating webhook (on update):

  • Enforces annotation immutability after creation

General:

  • Add flexible WithContainer/WithInitContainer builder methods
  • Add NewGPUContainer/NewContainer helper functions
  • Add WithAnnotations to PodCliqueSetBuilder
  • Remove deprecated test-envtest from the make test

Which issue(s) this PR fixes:

GREP-270

Special notes for your reviewer:

Does this PR introduce a API change?

NONE

Mutating webhook (on create):
- Automatically adds grove.io/auto-mnnvl: "true" annotation when MNNVL
  is globally enabled and PCS requests GPUs
- Respects existing annotation values (allows opt-out with "false")

Validating webhook (on create):
- Rejects PCS with auto-mnnvl: "true" if MNNVL feature is disabled

Validating webhook (on update):
- Enforces annotation immutability after creation

General:
- Add flexible WithContainer/WithInitContainer builder methods
- Add NewGPUContainer/NewContainer helper functions
- Add WithAnnotations to PodCliqueSetBuilder
- Remove deprecated test-envtest from the make test
Comment thread operator/internal/mnnvl/webhook.go Outdated
Comment thread operator/internal/mnnvl/webhook.go Outdated
Comment thread operator/internal/mnnvl/webhook.go Outdated
Comment thread operator/internal/mnnvl/helpers.go
Comment thread operator/internal/webhook/admission/pcs/validation/handler.go Outdated
Comment thread operator/internal/webhook/admission/pcs/defaulting/handler.go Outdated
@shmuel-runai shmuel-runai merged commit c52ff1a into ai-dynamo:main Jan 28, 2026
8 of 11 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