Files
Jiaxin ShanandGitHub 7965aab3c3 Update v1alpha1 RayCluster CRD and controllers (#22)
* Bump k8s version to 1.19.x and golang to 1.15

Bump the dependency versions
- Golang 1.15
- Kubernetes 1.19.14
- controller-runtime 0.7.2
- controller-tools 0.5.0

Signed-off-by: Jiaxin Shan <[email protected]>

* Update v1alpha1 RayCluster CRD

- Rename `WorkerGroupsSpec` to `WorkerGroupSpecs`
- Remove HeadService and add ServiceType and EnableIngressin headGroupSpec
- Add EnableInTreeAutoscaling field
- Add rich information in RayClusterStatus

Signed-off-by: Jiaxin Shan <[email protected]>

* Update raycluster controller

1. Refactor some internal methods to make invoking chains clear
2. Clean up some stale codes

Signed-off-by: Jiaxin Shan <[email protected]>

* Update deploy manifests and examples

Signed-off-by: Jiaxin Shan <[email protected]>

* Address review comments
2021-09-13 19:39:18 -07:00

36 lines
980 B
Go

package common
const (
// Belows used as label key
RayClusterLabelKey = "ray.io/cluster"
RayNodeTypeLabelKey = "ray.io/node-type"
RayNodeGroupLabelKey = "ray.io/group"
RayNodeLabelKey = "ray.io/is-ray-node"
RayIDLabelKey = "ray.io/identifier"
// rayOperator is the value of ray-operator used as identifier for the pod
rayOperator = "ray-operator"
// Use as separator for pod name, for example, raycluster-small-size-worker-0
DashSymbol = "-"
// Use as default port
DefaultClientPort = 10001
DefaultRedisPort = 6379
DefaultDashboardPort = 8265
DefaultClientPortName = "client"
DefaultRedisPortName = "redis"
DefaultDashboardName = "dashboard"
// Check node if ready by checking the path exists or not
PodReadyFilepath = "POD_READY_FILEPATH"
// Use as container env variable
NAMESPACE = "NAMESPACE"
CLUSTER_NAME = "CLUSTER_NAME"
RAY_IP = "RAY_IP"
RAY_PORT = "RAY_PORT"
REDIS_PASSWORD = "REDIS_PASSWORD"
)