asD
This commit is contained in:
@@ -1,6 +1,56 @@
|
||||
package controller
|
||||
|
||||
import "sigs.k8s.io/controller-runtime/pkg/client"
|
||||
import (
|
||||
"fmt"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
MaxConcurrentReconciles = 20
|
||||
NamespaceDefault = "pie-coordination-dev"
|
||||
TestEnvCheck = "TEST_ENV_CHECK"
|
||||
KubernetesClusterEnv = "KUBERNETES_CLUSTER"
|
||||
LocustOperatorVersionDesc = "Locust Operator Version"
|
||||
LeaderContainer = "locustio/locust:2.37.1"
|
||||
LeaderTestFile = "/usr/local/locust/dummy.py"
|
||||
LeaderPortNameWeb = "locust-web"
|
||||
LeaderPortProtocol = "TCP"
|
||||
LeaderPortWeb = 8089
|
||||
LeaderPortNameLocust1 = "listener1"
|
||||
LeaderPortListener1 = 5557
|
||||
LeaderPortNameLocust2 = "listener2"
|
||||
LeaderPortListener2 = 5558
|
||||
LeaderMaxCPU = "0.5"
|
||||
LeaderMaxMemory = "1Gi"
|
||||
LeaderMinCPU = "0.25"
|
||||
LeaderMinMemory = "512Mi"
|
||||
LeaderBuildParamConfig = "/usr/local/etc/locust_build_params"
|
||||
MosaicContainer = "docker.apple.com/telemetry/mosaic-agent:2.19.1"
|
||||
MosaicPortNameHttp = "mosaic-http"
|
||||
MosaicPortHttp = 8080
|
||||
MosaicPortProtocol = "TCP"
|
||||
MosaicVolumeConfigPath = "/usr/local/mosaic/conf.d"
|
||||
MosaicEndpointSuffix = "PROMETHEUS"
|
||||
GrafanaEndpoint = "playground-fuji.grafana.telemetry.g.apple.com"
|
||||
WorkerMaxCPU = "2"
|
||||
WorkerMinCPU = "1"
|
||||
WorkerMaxMemory = "3Gi"
|
||||
WorkerMinMemory = "1Gi"
|
||||
WorkerMaxStorage = "20Gi"
|
||||
WorkerMinStorage = "10Gi"
|
||||
SDRIdentName = "identity-certs"
|
||||
CertsMount = "/certs/"
|
||||
TimeoutDefault = time.Second * 20
|
||||
TimeoutInterval = time.Millisecond * 250
|
||||
SUCCESS bool = true
|
||||
FAILURE bool = false
|
||||
KeyMosaic = "mosaic"
|
||||
KeyLeader = "leader"
|
||||
KeyWorker = "worker"
|
||||
KeyOperator = "operator"
|
||||
KeyDB = "locust-db"
|
||||
)
|
||||
|
||||
func BuildObjectKey(namespace string, name string) client.ObjectKey {
|
||||
return client.ObjectKey{
|
||||
@@ -8,3 +58,7 @@ func BuildObjectKey(namespace string, name string) client.ObjectKey {
|
||||
Name: name,
|
||||
}
|
||||
}
|
||||
|
||||
func BuildName(name string, suffix string) string {
|
||||
return fmt.Sprintf("%s-%s", name, suffix)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user