common

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelHostname          = "kubeclipper.io/hostname"
	LabelOSStable          = "kubeclipper.io/os"
	LabelArchStable        = "kubeclipper.io/arch"
	LabelTopologyZone      = "topology.kubeclipper.io/zone"
	LabelTopologyRegion    = "topology.kubeclipper.io/region"
	LabelNodeRole          = "kubeclipper.io/nodeRole"
	LabelNodeDisable       = "kubeclipper.io/nodeDisable"
	LabelCreator           = "kubeclipper.io/creator"
	LabelUsername          = "kubeclipper.io/username"
	LabelClusterName       = "kubeclipper.io/cluster"
	LabelBackupName        = "kubeclipper.io/backup"
	LabelRecoveryName      = "kubeclipper.io/recovery"
	LabelOperationAction   = "kubeclipper.io/operation"
	LabelOperationName     = "kubeclipper.io/operation-name"
	LabelTimeoutSeconds    = "kubeclipper.io/timeout"
	LabelRoleTemplate      = "kubeclipper.io/role-template"
	LabelHidden            = "kubeclipper.io/hidden"
	LabelUserReference     = "iam.kubeclipper.io/user-ref"
	LabelExternalIP        = "kubeclipper.io/externalIP"
	LabelUpgradeVersion    = "kubeclipper.io/upgrade-version"
	LabelBackupPoint       = "kubeclipper.io/backupPoint"
	LabelCronBackupDisable = "kubeclipper.io/cronBackupDisable"
	LabelCronBackupEnable  = "kubeclipper.io/cronBackupEnable"

	LabelClusterProviderType = "kubeclipper.io/clusterProviderType"
	LabelClusterProviderName = "kubeclipper.io/clusterProviderName"
)
View Source
const (
	AnnotationAggregationRoles = "kubeclipper.io/aggregation-roles"
	RegoOverrideAnnotation     = "kubeclipper.io/rego-override"
	RoleAnnotation             = "iam.kubeclipper.io/role"
	AnnotationInternal         = "kubeclipper.io/internal"

	AnnotationMetadataFloatIP        = "metadata.kubeclipper.io/floatIP"
	AnnotationMetadataProxyServer    = "metadata.kubeclipper.io/proxyServer"
	AnnotationMetadataProxyAPIServer = "metadata.kubeclipper.io/proxyAPIServer"
	AnnotationMetadataProxySSH       = "metadata.kubeclipper.io/proxySSH"
)
View Source
const (
	LabelIDP       = "iam.kubeclipper.io/idp"
	LabelOriginUID = "iam.kubeclipper.io/origin-uid"
)
View Source
const (
	// eg: cinder/v1
	LabelComponentName    = "kubeclipper.io/componentName"
	LabelComponentVersion = "kubeclipper.io/componentVersion"
	// eg: storage
	LabelCategory = "kubeclipper.io/category"
	// eg: name
	AnnotationActualName  = "kubeclipper.io/actual-name"
	AnnotationDisplayName = "kubeclipper.io/display-name"
	AnnotationDescription = "kubeclipper.io/description"
	AnnotationOffline     = "kubeclipper.io/offline"

	AnnotationProviderSyncTime  = "kubeclipper.io/providerSyncTime"
	AnnotationProviderNodeID    = "kubeclipper.io/providerNodeID"    // provider's nodeID,just mark
	AnnotationOriginNode        = "kubeclipper.io/originNode"        // mark node is from kc or provider,add when join node to provider cluster
	AnnotationProviderClusterID = "kubeclipper.io/providerClusterID" // match kc cluster to provider cluster
)
View Source
const (
	ResourceKindGlobalRole = "GlobalRole"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRole

type NodeRole string // master/worker/ingress(worker)
const (
	NodeRoleMaster NodeRole = "master"
	NodeRoleWorker NodeRole = "worker"
)

func (NodeRole) String

func (nr NodeRole) String() string

Jump to

Keyboard shortcuts

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