mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update all k8s packages to 0.27.2
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
07b05616a0
commit
2551a0b05f
6
vendor/k8s.io/controller-manager/options/generic.go
generated
vendored
6
vendor/k8s.io/controller-manager/options/generic.go
generated
vendored
@ -102,6 +102,12 @@ func (o *GenericControllerManagerConfigurationOptions) Validate(allControllers [
|
||||
errs := []error{}
|
||||
errs = append(errs, o.Debugging.Validate()...)
|
||||
|
||||
// TODO: This can be removed when ResourceLock is not available
|
||||
// Lock the ResourceLock using leases
|
||||
if o.LeaderElection.LeaderElect && o.LeaderElection.ResourceLock != "leases" {
|
||||
errs = append(errs, fmt.Errorf(`resourceLock value must be "leases"`))
|
||||
}
|
||||
|
||||
allControllersSet := sets.NewString(allControllers...)
|
||||
for _, controller := range o.Controllers {
|
||||
if controller == "*" {
|
||||
|
Reference in New Issue
Block a user