mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 17:49:51 +00:00
* expose cluster status update rpc Signed-off-by: Nirav Parikh <nir.parikh05@gmail.com> * added cluster rpc to relay peering rpc server listener Signed-off-by: Nirav Parikh <nir.parikh05@gmail.com> --------- Signed-off-by: Nirav Parikh <nir.parikh05@gmail.com>
59 lines
2.0 KiB
Go
59 lines
2.0 KiB
Go
package constants
|
|
|
|
import (
|
|
"regexp"
|
|
|
|
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
|
)
|
|
|
|
type ClusterGeneration int
|
|
|
|
const (
|
|
Cluster_Verr ClusterGeneration = 0
|
|
Cluster_V1 ClusterGeneration = 1
|
|
Cluster_V2 ClusterGeneration = 2
|
|
)
|
|
|
|
var KubernetesLabelNameRegex = regexp.MustCompile(`^[A-Za-z0-9]([\.A-Za-z0-9_-]*[A-Za-z0-9])?$`)
|
|
|
|
const (
|
|
ParalusDomainLabel = "paralus.dev"
|
|
ClusterLabelKey = "paralus.dev/clusterName"
|
|
ClusterLocationKey = "paralus.dev/clusterLocation"
|
|
ClusterTypeKey = "paralus.dev/clusterType"
|
|
KubernetesVersionKey = "paralus.dev/k8sVersion"
|
|
ClusterGPU = "paralus.dev/clusterGPU"
|
|
ClusterGPUVendor = "paralus.dev/clusterGPUVendor"
|
|
ClusterUpgradeProtection = "paralus.dev/clusterUpgradeProtection"
|
|
EdgeSuffix = "EDGE_SUFFIX"
|
|
EdgeCnameSuffix = "EDGE_CNAME_SUFFIX"
|
|
DefaultBlueprint = "default"
|
|
OverrideCluster = "paralus.dev/overrideCluster"
|
|
ClusterID = "paralus.dev/clusterID"
|
|
Public = "paralus.dev/public"
|
|
ClusterName = "paralus.dev/clusterName"
|
|
)
|
|
|
|
const (
|
|
ApiVersion = "infra.k8smgmt.io/v3"
|
|
ClusterKind = "Cluster"
|
|
ClusterListKind = "ClusterList"
|
|
)
|
|
|
|
const (
|
|
NotSet = commonv3.ParalusConditionStatus_NotSet
|
|
Pending = commonv3.ParalusConditionStatus_Pending
|
|
InProgress = commonv3.ParalusConditionStatus_InProgress
|
|
Success = commonv3.ParalusConditionStatus_Success
|
|
Failed = commonv3.ParalusConditionStatus_Failed
|
|
Retry = commonv3.ParalusConditionStatus_Retry
|
|
Skipped = commonv3.ParalusConditionStatus_Skipped
|
|
Stopped = commonv3.ParalusConditionStatus_Stopped
|
|
Expired = commonv3.ParalusConditionStatus_Expired
|
|
Stopping = commonv3.ParalusConditionStatus_Stopping
|
|
Submitted = commonv3.ParalusConditionStatus_Submitted
|
|
Healthy = commonv3.ParalusConditionStatus_Healthy
|
|
Unhealthy = commonv3.ParalusConditionStatus_Unhealthy
|
|
Disconnected = commonv3.ParalusConditionStatus_Disconnected
|
|
)
|