-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Remove scheduler's legacy policy config #105828
Conversation
@ahg-g: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
1671fed
to
8e71ca7
Compare
/label api-review @liggitt this is the followup PR that removes the whole legacy types. |
/assign @Huang-Wei |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, liggitt 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 |
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 overall, just one minor question.
CertData []byte `json:"certData,omitempty"` | ||
// KeyData holds PEM-encoded bytes (typically read from a client certificate key file). | ||
// KeyData takes precedence over KeyFile | ||
KeyData []byte `json:"keyData,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.
@liggitt do you happen to know if we need to include datapolicy:"security-key"
into the json tag? (example here)
And, should we keep the "datapolicy" tag for the unversioned types.go?
kubernetes/pkg/scheduler/apis/config/types.go
Lines 314 to 316 in f08ad3e
// KeyData holds PEM-encoded bytes (typically read from a client certificate key file). | |
// KeyData takes precedence over KeyFile | |
KeyData []byte `datapolicy:"security-key"` |
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 PR should be a no-op, since it's just replicating the existing versioned type. I'm not sure what the current state of the datapolicy tags is... a follow-up to address that, tagging in the KEP implementers would be best
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Removes the remaining parts of the legacy policy config api. This api is unaddressable via current flags/config files, so safe to remove.
Which issue(s) this PR fixes:
Part of #92143
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: