Skip to content

Commit 922ceac

Browse files
authored
add hub qps and burst for work in the klusterlet (#377)
Signed-off-by: Zhiwei Yin <[email protected]>
1 parent 6ee4caf commit 922ceac

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,20 @@ spec:
475475
- feature
476476
type: object
477477
type: array
478+
hubKubeAPIBurst:
479+
default: 100
480+
description: |-
481+
HubKubeAPIBurst indicates the maximum burst of the throttle while talking with apiserver on the hub cluster.
482+
If it is set empty, use the default value: 100
483+
format: int32
484+
type: integer
485+
hubKubeAPIQPS:
486+
default: 50
487+
description: |-
488+
HubKubeAPIQPS indicates the maximum QPS while talking with apiserver on the hub cluster.
489+
If it is set empty, use the default value: 50
490+
format: int32
491+
type: integer
478492
kubeAPIBurst:
479493
default: 100
480494
description: |-

operator/v1/types_klusterlet.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,18 @@ type WorkAgentConfiguration struct {
292292
// +kubebuilder:default:=100
293293
KubeAPIBurst int32 `json:"kubeAPIBurst,omitempty"`
294294

295+
// HubKubeAPIQPS indicates the maximum QPS while talking with apiserver on the hub cluster.
296+
// If it is set empty, use the default value: 50
297+
// +optional
298+
// +kubebuilder:default:=50
299+
HubKubeAPIQPS int32 `json:"hubKubeAPIQPS,omitempty"`
300+
301+
// HubKubeAPIBurst indicates the maximum burst of the throttle while talking with apiserver on the hub cluster.
302+
// If it is set empty, use the default value: 100
303+
// +optional
304+
// +kubebuilder:default:=100
305+
HubKubeAPIBurst int32 `json:"hubKubeAPIBurst,omitempty"`
306+
295307
// AppliedManifestWorkEvictionGracePeriod is the eviction grace period the work agent will wait before
296308
// evicting the AppliedManifestWorks, whose corresponding ManifestWorks are missing on the hub cluster, from
297309
// the managed cluster. If not present, the default value of the work agent will be used.

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)