mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +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
2
vendor/k8s.io/controller-manager/options/debugging.go
generated
vendored
2
vendor/k8s.io/controller-manager/options/debugging.go
generated
vendored
@ -46,7 +46,7 @@ func (o *DebuggingOptions) AddFlags(fs *pflag.FlagSet) {
|
||||
fs.BoolVar(&o.EnableProfiling, "profiling", o.EnableProfiling,
|
||||
"Enable profiling via web interface host:port/debug/pprof/")
|
||||
fs.BoolVar(&o.EnableContentionProfiling, "contention-profiling", o.EnableContentionProfiling,
|
||||
"Enable lock contention profiling, if profiling is enabled")
|
||||
"Enable block profiling, if profiling is enabled")
|
||||
}
|
||||
|
||||
// ApplyTo fills up Debugging config with options.
|
||||
|
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