mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
statefulset: use pvc lister, replace legacylisters
Use a PVC lister instead of a client when retrieving PVCs. Replace unit test's use of legacylisters with the generated listers.
This commit is contained in:
@@ -32,6 +32,7 @@ func startStatefulSetController(ctx ControllerContext) (bool, error) {
|
||||
go statefulset.NewStatefulSetController(
|
||||
ctx.NewInformerFactory.Core().V1().Pods(),
|
||||
ctx.NewInformerFactory.Apps().V1beta1().StatefulSets(),
|
||||
ctx.NewInformerFactory.Core().V1().PersistentVolumeClaims(),
|
||||
ctx.ClientBuilder.ClientOrDie("statefulset-controller"),
|
||||
).Run(1, ctx.Stop)
|
||||
return true, nil
|
||||
|
||||
Reference in New Issue
Block a user