Skip to content

Commit

Permalink
Remove PersistentVolumeLabel admission plugin
Browse files Browse the repository at this point in the history
Remove useless admission plugin.

* It has been deprecated for years.
* All in-tree cloud providers were removed, so the admission plugin does not have
  any way to get PV labels.
* There is a replacement in https://github.com/kubernetes-sigs/cloud-pv-admission-labeler
  • Loading branch information
jsafrane committed May 7, 2024
1 parent 9791f0d commit ff402f3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 1,125 deletions.
1 change: 0 additions & 1 deletion pkg/kubeapiserver/options/plugins.go
Expand Up @@ -123,7 +123,6 @@ func RegisterAllAdmissionPlugins(plugins *admission.Plugins) {
exists.Register(plugins)
noderestriction.Register(plugins)
nodetaint.Register(plugins)
label.Register(plugins) // DEPRECATED, future PVs should not rely on labels for zone topology
podnodeselector.Register(plugins)
podtolerationrestriction.Register(plugins)
runtimeclass.Register(plugins)
Expand Down
10 changes: 0 additions & 10 deletions plugin/pkg/admission/storage/persistentvolume/label/OWNERS

This file was deleted.

365 changes: 0 additions & 365 deletions plugin/pkg/admission/storage/persistentvolume/label/admission.go

This file was deleted.

0 comments on commit ff402f3

Please sign in to comment.