annotation

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AnnDeploymentRevision = "deployment.kubernetes.io/revision"
	// AnnPVCDeferDeletingKey is pvc defer deletion annotation key used in PVC for defer deleting PVC
	AnnPVCDeferDeletingKey = "nebula-graph.io/pvc-defer-deleting"
	// AnnPodNameKey is pod name annotation key used in PV/PVC for synchronizing nebula cluster meta info
	AnnPodNameKey string = "nebula-graph.io/pod-name"
	// AnnLastSyncTimestampKey is annotation key to indicate the last timestamp the operator sync the workload
	AnnLastSyncTimestampKey = "nebula-graph.io/sync-timestamp"
	// AnnHaModeKey is annotation key to indicate whether in ha mode
	AnnHaModeKey = "nebula-graph.io/ha-mode"
	// AnnLastAppliedConfigKey is annotation key to indicate the last applied configuration
	AnnLastAppliedConfigKey = "nebula-graph.io/last-applied-configuration"
	// AnnPodSchedulingKey is pod scheduling annotation key, it represents whether the pod is scheduling
	AnnPodSchedulingKey = "nebula-graph.io/pod-scheduling"
	// AnnPodConfigMapHash is pod configmap hash key to update configuration dynamically
	AnnPodConfigMapHash = "nebula-graph.io/cm-hash"
	// AnnPvReclaimKey is annotation key that indicate whether reclaim persistent volume
	AnnPvReclaimKey = "nebula-graph.io/enable-pv-reclaim"

	// AnnRestoreNameKey is restore name annotation key used for creating new nebula cluster with backup data
	AnnRestoreNameKey = "nebula-graph.io/restore-name"
	// AnnRestoreMetadStepKey is the annotation key to control Metad reconcile process
	AnnRestoreMetadStepKey = "nebula-graph.io/restore-metad-done"
	// AnnRestoreStoragedStepKey is the annotation key to control Storaged reconcile process
	AnnRestoreStoragedStepKey = "nebula-graph.io/restore-storaged-done"
	// AnnRestoreStageKey is the annotation key to indicate what is the current stage
	AnnRestoreStageKey = "restore-stage"

	// AnnHaModeVal is annotation value to indicate whether in ha mode
	AnnHaModeVal = "true"

	// AnnRestoreMetadStepVal is annotation value to indicate whether Metad restore step is completed in stage 1
	AnnRestoreMetadStepVal = "true"
	// AnnRestoreStoragedStepVal is annotation value to indicate whether Storaged restore step is completed in stage 1
	AnnRestoreStoragedStepVal = "true"

	AnnRestoreStage1Val = "restore-stage-1"
	AnnRestoreStage2Val = "restore-stage-2"
)

Variables

This section is empty.

Functions

func CopyAnnotations added in v0.9.0

func CopyAnnotations(src map[string]string) map[string]string

func IsInHaMode

func IsInHaMode(ann map[string]string) bool

IsInHaMode check whether in ha mode

func IsInRestoreStage2 added in v1.4.0

func IsInRestoreStage2(ann map[string]string) bool

func IsRestoreMetadDone added in v1.4.0

func IsRestoreMetadDone(ann map[string]string) bool

func IsRestoreNameNotEmpty added in v1.4.0

func IsRestoreNameNotEmpty(ann map[string]string) bool

func IsRestoreStoragedDone added in v1.4.0

func IsRestoreStoragedDone(ann map[string]string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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