mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #85298 from liggitt/scheduler-csi-v1
Use CSINodes v1 API in scheduler
This commit is contained in:
commit
ff0a1d86d5
@ -398,7 +398,7 @@ func AddAllEventHandlers(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if utilfeature.DefaultFeatureGate.Enabled(features.CSINodeInfo) {
|
if utilfeature.DefaultFeatureGate.Enabled(features.CSINodeInfo) {
|
||||||
informerFactory.Storage().V1beta1().CSINodes().Informer().AddEventHandler(
|
informerFactory.Storage().V1().CSINodes().Informer().AddEventHandler(
|
||||||
cache.ResourceEventHandlerFuncs{
|
cache.ResourceEventHandlerFuncs{
|
||||||
AddFunc: sched.onCSINodeAdd,
|
AddFunc: sched.onCSINodeAdd,
|
||||||
UpdateFunc: sched.onCSINodeUpdate,
|
UpdateFunc: sched.onCSINodeUpdate,
|
||||||
|
Loading…
Reference in New Issue
Block a user