Skip to content

Commit

Permalink
Merge pull request #3975 from Monokaix/fix-flag
Browse files Browse the repository at this point in the history
[bugfix]fix leader-elect-resource-namespace flag not take effect
  • Loading branch information
volcano-sh-bot authored Jan 19, 2025
2 parents 4ab1f10 + e60e08e commit 4dea29b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/controller-manager/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (s *ServerOption) AddFlags(fs *pflag.FlagSet, knownControllers []string) {
"File containing the default x509 Certificate for HTTPS. (CA cert, if any, concatenated "+
"after server cert).")
fs.StringVar(&s.KeyFile, "tls-private-key-file", s.KeyFile, "File containing the default x509 private key matching --tls-cert-file.")
fs.StringVar(&s.LockObjectNamespace, "lock-object-namespace", defaultLockObjectNamespace, "Define the namespace of the lock object; it is volcano-system by default.")
fs.StringVar(&s.LockObjectNamespace, "lock-object-namespace", "", "Define the namespace of the lock object; it is volcano-system by default.")
fs.MarkDeprecated("lock-object-namespace", "This flag is deprecated and will be removed in a future release. Please use --leader-elect-resource-namespace instead.")
fs.Float32Var(&s.KubeClientOptions.QPS, "kube-api-qps", defaultQPS, "QPS to use while talking with kubernetes apiserver")
fs.IntVar(&s.KubeClientOptions.Burst, "kube-api-burst", defaultBurst, "Burst to use while talking with kubernetes apiserver")
Expand Down
1 change: 0 additions & 1 deletion cmd/controller-manager/app/options/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func TestAddFlags(t *testing.T) {
ResourceNamespace: defaultLockObjectNamespace,
ResourceName: "vc-controller-manager",
},
LockObjectNamespace: defaultLockObjectNamespace,
WorkerThreadsForPG: 5,
WorkerThreadsForQueue: 5,
WorkerThreadsForGC: 1,
Expand Down

0 comments on commit 4dea29b

Please sign in to comment.