ctrlmesh

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvEnableWebhookServer     = "ENABLE_WEBHOOK_SERVER"
	EnvEnableCalculateRunnable = "ENABLE_CALCULATE_RUNNABLE"
	EnvTestMode                = "ENV_TEST_MODE"
	EnvGlobalSelector          = "GLOBAL_SELECTOR"
	EnvWatchOnLimit            = "WATCH_ON_LIMIT"
)

Environments

View Source
const (
	CtrlmeshControlPrefix        = "ctrlmesh.kusionstack.io/"
	CtrlmeshIgnoreWebhookLabel   = "ctrlmesh.kusionstack.io/ignore-webhook"
	CtrlmeshIgnoreValidateLabel  = "ctrlmesh.kusionstack.io/ignore-validate"
	CtrlmeshDefaultReplicasLabel = "ctrlmesh.kusionstack.io/default-replicas"
	CtrlmeshEnableProxyLabel     = "ctrlmesh.kusionstack.io/enable-proxy"
	CtrlmeshEnableIptableMode    = "ctrlmesh.kusionstack.io/enable-iptables"

	CtrlmeshAutoShardingRootLabel         = "ctrlmesh.kusionstack.io/auto-sharding-root"
	CtrlmeshInRollingLabel                = "ctrlmesh.kusionstack.io/rolling"
	CtrlmeshDisableFakeKubeconfigArgLabel = "ctrlmesh.kusionstack.io/disable-fake-kubeconfig-arg"
	CtrlmeshDisableFakeKubeconfigEnvLabel = "ctrlmesh.kusionstack.io/disable-fake-kubeconfig-env"
	CtrlmeshSharedLogVolumeLabel          = "ctrlmesh.kusionstack.io/log-volume"
	CtrlmeshWatchOnLimitLabel             = "ctrlmesh.kusionstack.io/watching"
	CtrlmeshProxyKubeConfigVolumeLabel    = "ctrlmesh.kusionstack.io/kubeconfig-volume"

	CtrlmeshCircuitBreakerDisableKey = "circuitbreaker.ctrlmesh.kusionstack.io/disable"
	CtrlmeshFaultInjectionDisableKey = "faultinjection.ctrlmesh.kusionstack.io/disable"
)

Labels

View Source
const (
	CtrlmeshAutoShardingHashAnno       = "ctrlmesh.kusionstack.io/auto-sharding-hash"
	CtrlmeshRollingStatusAnno          = "ctrlmesh.kusionstack.io/roll-status"
	CtrlmeshRollingExpectedAnno        = "ctrlmesh.kusionstack.io/roll-expected"
	CtrlmeshSharedLogPathAnno          = "ctrlmesh.kusionstack.io/log-path"
	CtrlmeshWebhookEnvConfigAnno       = "ctrlmesh.kusionstack.io/env-sync"
	CtrlmeshEnvInjectAnno              = "ctrlmesh.kusionstack.io/env-inject"
	CtrlmeshProxyContainerResourceAnno = "ctrlmesh.kusionstack.io/proxy-resource"
)

Annotations

View Source
const (
	ProtectFinalizer = "finalizer.ctrlmesh.kusionstack.io/protected"
)

Finalizers

Variables

This section is empty.

Functions

func IsControlledByMesh added in v0.2.0

func IsControlledByMesh(labels map[string]string) bool

func MeshControlLabel added in v0.2.0

func MeshControlLabel() string

func NamespaceShardLabel added in v0.2.0

func NamespaceShardLabel() string

func ShardHashLabel added in v0.2.0

func ShardHashLabel() string

func ShouldSyncLabels added in v0.2.0

func ShouldSyncLabels() []string

Types

This section is empty.

Directories

Path Synopsis
Code generated by protoc-gen-deepcopy.
Code generated by protoc-gen-deepcopy.
+k8s:protobuf-gen=package +groupName=ctrlmesh.kusionstack.io
+k8s:protobuf-gen=package +groupName=ctrlmesh.kusionstack.io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL