mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Check apps/v1 StatefulSet available before starting its controller
This commit is contained in:
parent
02611149c1
commit
e1c3a711ea
@ -47,7 +47,7 @@ func startDaemonSetController(ctx ControllerContext) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func startStatefulSetController(ctx ControllerContext) (bool, error) {
|
func startStatefulSetController(ctx ControllerContext) (bool, error) {
|
||||||
if !ctx.AvailableResources[schema.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "statefulsets"}] {
|
if !ctx.AvailableResources[schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "statefulsets"}] {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
go statefulset.NewStatefulSetController(
|
go statefulset.NewStatefulSetController(
|
||||||
|
Loading…
Reference in New Issue
Block a user