-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Rework legacy validation to use field error helpers #3148
Rework legacy validation to use field error helpers #3148
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@justinsb PR needs rebase |
pkg/apis/kops/validation/legacy.go
Outdated
} | ||
if strict && c.Spec.Kubelet == nil { | ||
return fmt.Errorf("Kubelet not configured") | ||
return field.Required(fieldSpec.Child("Kubelet"), "Kubelet not configured") |
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.
Looks like this is already validated on L78
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.
Good point...
One small pre-existing validation check that can be removed, otherwise LGTM. 👍 |
Going to rebase this after etcd3 support (#3176) lands |
2a48df7
to
f9f8769
Compare
f9f8769
to
9c5d4c2
Compare
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
No description provided.