mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
fix kube-apiserver poststarthook additions to avoid duplicating them
This commit is contained in:
parent
e4ad76e298
commit
3c1dc89d98
@ -120,6 +120,9 @@ func createAggregatorConfig(
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we need to clear the poststarthooks so we don't add them multiple times to all the servers (that fails)
|
||||||
|
aggregatorConfig.GenericConfig.PostStartHooks = map[string]genericapiserver.PostStartHookConfigEntry{}
|
||||||
|
|
||||||
return aggregatorConfig, nil
|
return aggregatorConfig, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,6 +92,9 @@ func createAPIExtensionsConfig(
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we need to clear the poststarthooks so we don't add them multiple times to all the servers (that fails)
|
||||||
|
apiextensionsConfig.GenericConfig.PostStartHooks = map[string]genericapiserver.PostStartHookConfigEntry{}
|
||||||
|
|
||||||
return apiextensionsConfig, nil
|
return apiextensionsConfig, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user