-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Move GetPersistentVolumeClaimClass to component-helpers #98433
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
Move GetPersistentVolumeClaimClass to component-helpers #98433
Conversation
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.
/sig scheduling
/cc @ahg-g @ingvagabund
/sig storage |
5ba84ab
to
f2eb6d4
Compare
|
||
// GetPersistentVolumeClaimClass returns StorageClassName. If no storage class was | ||
// requested, it returns "". | ||
func GetPersistentVolumeClaimClass(claim *v1.PersistentVolumeClaim) string { |
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.
Can we move GetPersistentVolumeClass
as well since the two functions are related.
Also, I don't see pkg/apis/core/v1/helper/helpers.go
being updated, shouldn't the function be removed from there?
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.
Ah yeah, I missed that. updated
f2eb6d4
to
1e06964
Compare
/lgtm |
/approve |
The helpers are duplicated in |
I think this could be a follow-up PR. Since kubectl is already duplicating them, this move doesn't directly affect them. So in the interest of keeping the scope of this PR just to the necessary changes I would prefer to make that change later |
1e06964
to
834b47c
Compare
The goal of this move is related to issue 89930, to break the dependence of scheduling plugins on internal helpers. This function can easily move to component-helpers where it will be used by other components as well.
834b47c
to
ba72411
Compare
/remove-sig api-machinery |
/assign @liggitt Sorry Jordan, but you seem to be the only one who can approve the rest :) |
/assign @BenTheElder for vendor/ |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi, ingvagabund, jsafrane, 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 |
/priority important-soon |
/lgtm |
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The goal of this move is related to issue #89930, to break the dependence
of scheduling plugins on internal helpers. This function can easily move to
component-helpers where it will be used by other components as well.
Which issue(s) this PR fixes:
Ref #89930
Replaces #90006
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: