types

package
v0.0.0-...-210f5be Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceKind       = "Service"
	DeploymentKind    = "Deployment"
	StatefulSetKind   = "StatefulSet"
	JobKind           = "Job"
	AppsetKind        = "Appset"
	AdvdeploymentKind = "Advdeployment"
)

resource kind

Variables

View Source
var (
	// CurrentClusterName connected internal cluster name
	CurrentClusterName = "current"

	// MasterQueueName master feature queue name
	MasterQueueName = "master"
	// WorkerQueueName worker featrue queue name
	WorkerQueueName = "worker"
)
View Source
var (
	MultiClusterCfgConfigmapNamespace = "sym-admin"
	MultiClusterCfgConfigmapLabels    = map[string]string{
		"ClusterOwner": "sym-admin",
	}
	MultiClusterCfgConfigmapDataKey   = "kubeconfig.yaml"
	MultiClusterCfgConfigmapStatusKey = "status"
)

MultiCluster configuration manager

View Source
var (
	FilterNamespaceAppset        = []string{"*"}
	FilterNamespaceAdvdeployment = []string{"*"}
)

Filter info

View Source
var (
	ObserveMustLabelClusterName = "sym-cluster-info"
	ObserveMustLabelAppName     = "app"

	ServiceNameSuffix = "-svc"

	LabelKeyZone = "sym-available-zone"
)

labels

View Source
var (
	AnnotationsHpa        = "hpa.autoscaling.dmall.com/Hpa"
	AnnotationsHpaMetrics = "hpa.autoscaling.dmall.com/Metrics"
)

annotation

View Source
var (
	MetricAverageUtilization = "AverageUtilization"
	MetricAverageValue       = "AverageValue"
)

Metrics enum

View Source
var (
	FinalizersStr = "sym-admin-finalizers"
)

Finalizers

View Source
var (
	HorizontalAPIVersion = "apps/v1"
)

HorizontalAPIVersion horizontal api version

View Source
var LastAppliedConfig = "workload.dmall.com/last-applied"
View Source
var (
	Scheme = runtime.NewScheme()
)

Scheme build runtime.scheme

View Source
var (
	VersionSep = "/"
)

VersionSep version separation

Functions

This section is empty.

Types

type ContextKey

type ContextKey int

ContextKey type

const (
	ContextKeyStepStop ContextKey = iota
	ContextKeyNeedRequeue
	ContextKeyRequeueAfter
	ContextKeyAppsetStatus
	ContextKeyAdvdeploymentOwnerRes
	ContextKeyAdvdeploymentAggreStatus
	ContextKeyAdvdeploymentGenerationEqual
	ContextKeyEnd
)

Context key types(built-in)

Jump to

Keyboard shortcuts

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