From 80acc0fb51650c75b65e40a2a314f40b4e8600ac Mon Sep 17 00:00:00 2001 From: Thearas Date: Mon, 9 Jan 2023 16:35:31 +0800 Subject: [PATCH] comment: rename `kubenetes api` to `kubenetes API server` --- pkg/controller/dependences.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/dependences.go b/pkg/controller/dependences.go index 9f2761da15b..418820a0603 100644 --- a/pkg/controller/dependences.go +++ b/pkg/controller/dependences.go @@ -92,7 +92,7 @@ type CLIConfig struct { // what resources should be watched and synced by controller Selector string - // KubeClientQPS indicates the maximum QPS to the kubenetes api from client. + // KubeClientQPS indicates the maximum QPS to the kubenetes API server from client. KubeClientQPS float64 KubeClientBurst int } @@ -151,8 +151,8 @@ func (c *CLIConfig) AddFlag(_ *flag.FlagSet) { flag.DurationVar(&c.LeaseDuration, "leader-lease-duration", c.LeaseDuration, "leader-lease-duration is the duration that non-leader candidates will wait to force acquire leadership") flag.DurationVar(&c.RenewDeadline, "leader-renew-deadline", c.RenewDeadline, "leader-renew-deadline is the duration that the acting master will retry refreshing leadership before giving up") flag.DurationVar(&c.RetryPeriod, "leader-retry-period", c.RetryPeriod, "leader-retry-period is the duration the LeaderElector clients should wait between tries of actions") - flag.Float64Var(&c.KubeClientQPS, "kube-client-qps", c.KubeClientQPS, "The maximum QPS to the kubenetes api from client") - flag.IntVar(&c.KubeClientBurst, "kube-client-burst", c.KubeClientBurst, "The maximum burst for throttle to the kubenetes api from client") + flag.Float64Var(&c.KubeClientQPS, "kube-client-qps", c.KubeClientQPS, "The maximum QPS to the kubenetes API server from client") + flag.IntVar(&c.KubeClientBurst, "kube-client-burst", c.KubeClientBurst, "The maximum burst for throttle to the kubenetes API server from client") } // HasNodePermission returns whether the user has permission for node operations.