mirror of https://github.com/k3s-io/k3s
Check apps/v1 StatefulSet available before starting its controller
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