Skip to content

Update CRD types: add access.public, replace raw JSON overrides - #20

Merged
dcmcand merged 1 commit into
mainfrom
fix/crd-types-design-review
Mar 26, 2026
Merged

dcmcand merged 1 commit into
mainfrom
fix/crd-types-design-review

Conversation

@dcmcand

@dcmcand dcmcand commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates CRD types to match the revised design spec after review feedback:

  • AccessSpec: added public bool field for models accessible to all authenticated users. Made groups optional (not needed when public is true).
  • AdvancedSpec: replaced raw JSON overrides (vllmOverrides, inferencePoolOverrides) with typed fields that prevent security escalation:
    • VLLMAdvancedSpec: extraArgs, extraEnv, tolerations, nodeSelector, affinity
    • InferencePoolAdvancedSpec: schedulerConfig
  • Removed apiextensionsv1 dependency (no more raw JSON in CRD)
  • Added InternalHostname helper for internal gateway-facing endpoints

Test plan

  • cd operator && make test - all tests pass
  • cd operator && go build ./... - clean build
  • CRD regenerated and copied to Helm chart

…typed fields

- AccessSpec: add public bool field, make groups optional
- AdvancedSpec: replace vllmOverrides/inferencePoolOverrides (raw JSON) with
  typed VLLMAdvancedSpec (extraArgs, extraEnv, tolerations, nodeSelector, affinity)
  and InferencePoolAdvancedSpec (schedulerConfig)
- Add InternalHostname helper for internal endpoint URLs
- Removes apiextensionsv1 dependency (no more raw JSON in CRD)
@dcmcand
dcmcand merged commit 92e84f0 into main Mar 26, 2026
1 check 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.

1 participant