-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the API generated docs for managedBy #565
Conversation
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
8f6e0dd
to
ab6f0f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you!
// by RFC 1123. All characters trailing the first "/" must be valid HTTP Path | ||
// characters as defined by RFC 3986. The value cannot exceed 63 characters. | ||
// The field is immutable. | ||
// +optional | ||
ManagedBy *string `json:"managedBy,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just curious. Why we don't use CEL validation instead of webhook validation here?
jobset/pkg/webhooks/jobset_webhook.go
Line 231 in 7752a36
errs = append(errs, apivalidation.ValidateImmutableField(mungedSpec.ManagedBy, oldJS.Spec.ManagedBy, field.NewPath("spec").Child("managedBy"))...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No specific reason for using webhook validation here. We can look into migrating to CEL as a follow up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thank you.
/lgtm Thanks for improving the documentation here! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind documentation