Files
aa24970812 [apiserver]: merge http utils of apiserver v1/v2 (#3924)
* feat: merge http utils of apiserver v1/v2

Signed-off-by: Cheng-Yeh Chung <[email protected]>

* fix naming error in package alias

Co-authored-by: Rueian <[email protected]>
Signed-off-by: Cheng-Yeh Chung <[email protected]>

* fix naming error

Signed-off-by: Cheng-Yeh Chung <[email protected]>

* refactor function naming

Signed-off-by: Cheng-Yeh Chung <[email protected]>

* remove TODO comments solved by this PR

Signed-off-by: Cheng-Yeh Chung <[email protected]>

* merge retry config to RetryRoundTripper. fix v1 merge error

Signed-off-by: Cheng-Yeh Chung <[email protected]>

---------

Signed-off-by: Cheng-Yeh Chung <[email protected]>
Co-authored-by: Rueian <[email protected]>
2025-08-12 08:09:34 -07:00

43 lines
1.1 KiB
Go

package util
import "time"
// ClientOptions contains configuration needed to create a Kubernetes client
type ClientOptions struct {
QPS float32
Burst int
}
// TODO: this needs to be revised.
const (
// Label keys
RayClusterNameLabelKey = "ray.io/cluster-name"
RayClusterUserLabelKey = "ray.io/user"
RayClusterVersionLabelKey = "ray.io/version"
RayClusterEnvironmentLabelKey = "ray.io/environment"
KubernetesApplicationNameLabelKey = "app.kubernetes.io/name"
KubernetesManagedByLabelKey = "app.kubernetes.io/managed-by"
KubernetesComponentLabelKey = "app.kubernetes.io/component"
// Annotation keys
// Role level
RayClusterComputeTemplateAnnotationKey = "ray.io/compute-template"
RayClusterImageAnnotationKey = "ray.io/compute-image"
RayClusterDefaultImageRepository = "rayproject/ray"
)
const (
// The application name
ApplicationName = "kuberay"
// The component name for apiserver
ComponentName = "kuberay-apiserver"
// The curl container name for apiserver
CurlContainerName = "apiserver-curl"
// Timeout for apiserver gRPC server
GRPCServerDefaultTimeout = 60 * time.Second
)