Skip to content
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

1.30: Clean up PersistentVolumeLabel admission plugin #124794

Merged
merged 1 commit into from May 11, 2024

Conversation

jsafrane
Copy link
Member

This is a manual fix of #124504 in release-1.30 branch.

#124504 was fixed in master by removing the admission plugin. IMO it's not a good idea to remove the plugin in already released version, so cleaning up the admission not to use the removed cloud provider.

What type of PR is this?

/kind bug
/kind regression

What this PR does / why we need it:

Azure and vSphere cloud providers were removed in v1.30. Remove their usage from PersistentVolumeLabel admission plugin, otherwise the admission plugin refuses creation of in-tree AzureDisk or vSphere volume.

Related to #124504, just fixing it in 1.30.

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fixed PersistentVolumeLabel admission plugin refusing in-tree Azure Disk and vSphere PersistentVolumes.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Azure and vSphere cloud providers were removed in v1.30. Remove their usage
from PersistentVolumeLabel admission plugin, otherwise the admission plugin
refuses creation of in-tree AzureDisk or vSphere volume.
@k8s-ci-robot k8s-ci-robot added do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels May 10, 2024
@k8s-ci-robot k8s-ci-robot added this to the v1.30 milestone May 10, 2024
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/regression Categorizes issue or PR as related to a regression from a prior release. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels May 10, 2024
@jsafrane
Copy link
Member Author

/sig storage
/priority imporant-soon
/triage accepted

@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. triage/accepted Indicates an issue or PR is ready to be actively worked on. labels May 10, 2024
@k8s-ci-robot
Copy link
Contributor

@jsafrane: The label(s) priority/imporant-soon cannot be applied, because the repository doesn't have them.

In response to this:

/sig storage
/priority imporant-soon
/triage accepted

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 10, 2024
@jsafrane
Copy link
Member Author

/sig cloud-provider

@k8s-ci-robot k8s-ci-robot added the sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. label May 10, 2024
@dims
Copy link
Member

dims commented May 10, 2024

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 66df28ea8ccee50e84064f69ac8821ce10ea95c6

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, jsafrane

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2024
@liggitt
Copy link
Member

liggitt commented May 10, 2024

The admission plugin is not on by default… isn't the more correct adjustment for azure / vsphere clusters to not enable it in 1.30+?

what happens if it is enabled in those clusters with this PR removing the azure / vsphere implementations?

Edit: I guess we hit the "Unrecognized volume, do not add any labels" case… I guess either deleting the code like this or the cluster stopping using the admission plugin seems ok

@jsafrane
Copy link
Member Author

@liggitt we're removing the admission plugin in 1.31: #124504

And AWS has been removed from the admission plugin in 1.27 (?) without anyone noticing. I admit, it should have been handled (and announced) better.

@Verolop Verolop added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label May 11, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. label May 11, 2024
@k8s-ci-robot k8s-ci-robot merged commit 7cf91cf into kubernetes:release-1.30 May 11, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. kind/regression Categorizes issue or PR as related to a regression from a prior release. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants