Documentation ¶
Overview ¶
Package constant contains all common constants used in the project
Index ¶
Constants ¶
const ( OadpLabel = "openshift.io/oadp" // TODO import? ManagedByLabel = "app.kubernetes.io/managed-by" ManagedByLabelValue = "oadp-nac-controller" // TODO why not use same project name as in PROJECT file? NabOriginNameAnnotation = "openshift.io/oadp-nab-origin-name" NabOriginNamespaceAnnotation = "openshift.io/oadp-nab-origin-namespace" NabOriginUUIDAnnotation = "openshift.io/oadp-nab-origin-uuid" )
Common labels for objects manipulated by the Non Admin Controller Labels should be used to identify the NAC object Annotations on the other hand should be used to define ownership of the specific Object, such as Backup/Restore.
const EmptyString = ""
EmptyString defines a constant for the empty string
const MaxKubernetesNameLength = 253
MaxKubernetesNameLength represents maximum length of the name in k8s
const NameSpaceString = "Namespace"
NameSpaceString k8s Namespace string
const (
NamespaceEnvVar = "WATCH_NAMESPACE"
)
Common environment variables for the Non Admin Controller
const VeleroBackupNamePrefix = "nab"
VeleroBackupNamePrefix represents the prefix for the object name generated by the NonAdminController
Variables ¶
var OadpNamespace = os.Getenv(NamespaceEnvVar)
OadpNamespace is the namespace OADP operator is installed
Functions ¶
This section is empty.
Types ¶
This section is empty.