annotation

package
v0.0.0-...-9a97ee8 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 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 = "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"
	// AnnLastReplicas is annotation key to indicate the last replicas
	AnnLastReplicas = "nebula-graph.io/last-replicas"
	// AnnLastAppliedDynamicFlagsKey is annotation key to indicate the last applied custom dynamic flags
	AnnLastAppliedDynamicFlagsKey = "nebula-graph.io/last-applied-dynamic-flags"
	// AnnLastAppliedStaticFlagsKey is annotation key to indicate the last applied custom static flags
	AnnLastAppliedStaticFlagsKey = "nebula-graph.io/last-applied-static-flags"
	// AnnLastAppliedConfigKey is annotation key to indicate the last applied configuration
	AnnLastAppliedConfigKey = "nebula-graph.io/last-applied-configuration"
	// 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"
	// AnnDeleteProtection is an annotation key used to prevent the deletion of a nebula cluster that has been annotated by this key
	AnnDeleteProtection = "nebula-graph.io/delete-protection"

	// AnnRestartTimestamp is annotation key to indicate the timestamp that operator restart the workload
	AnnRestartTimestamp = "nebula-graph.io/restart-timestamp"
	// AnnRestartPodOrdinal is the annotation key to indicate which Pod will be restarted
	AnnRestartPodOrdinal = "nebula-graph.io/restart-ordinal"

	// 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"

	// AnnDeleteProtectionVal is annotation value to indicate whether nebula cluster is protected
	AnnDeleteProtectionVal = "true"

	// 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

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

func ISDeleteProtected

func ISDeleteProtected(ann map[string]string) bool

func IsInHaMode

func IsInHaMode(ann map[string]string) bool

IsInHaMode check whether in HA mode

func IsInRestoreStage2

func IsInRestoreStage2(ann map[string]string) bool

func IsRestoreMetadDone

func IsRestoreMetadDone(ann map[string]string) bool

func IsRestoreNameNotEmpty

func IsRestoreNameNotEmpty(ann map[string]string) bool

func IsRestoreStoragedDone

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