From ca09a3a371a0855adb50702150e91b1b9a3b3178 Mon Sep 17 00:00:00 2001 From: Di Xu Date: Tue, 13 Jun 2023 16:09:06 +0800 Subject: [PATCH] configurable client qps and burst to access child clusters (#707) optimize and cache deploy context for helm Signed-off-by: Di Xu --- clusters/v1beta1/types.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/clusters/v1beta1/types.go b/clusters/v1beta1/types.go index ba92270..8fdd6c2 100644 --- a/clusters/v1beta1/types.go +++ b/clusters/v1beta1/types.go @@ -255,6 +255,18 @@ type ManagedClusterStatus struct { // +optional UseSocket bool `json:"useSocket,omitempty"` + // KubeQPS controls the number of queries per second allowed for this connection. + // Used by deployer in Clusternet to control the qps to current child cluster. + // + // +optional + KubeQPS float32 `json:"kubeQPS,omitempty"` + + // KubeBurst allows extra queries to accumulate when a client is exceeding its rate. + // Used by deployer in Clusternet to control the burst to current child cluster. + // + // +optional + KubeBurst int32 `json:"kubeBurst,omitempty"` + // Allocatable is the sum of allocatable resources for nodes in the cluster // +optional Allocatable corev1.ResourceList `json:"allocatable,omitempty"`