Documentation ¶
Overview ¶
Package constant contains all common constants used in the project
Index ¶
Constants ¶
const ( OadpLabel = "openshift.io/oadp" // TODO import? OadpLabelValue = TrueString 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" NabOriginNACUUIDLabel = "openshift.io/oadp-nab-origin-nacuuid" NarOriginNACUUIDLabel = "openshift.io/oadp-nar-origin-nacuuid" NabFinalizerName = "nonadminbackup.oadp.openshift.io/finalizer" )
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 MaximumNacObjectNameLength = validation.DNS1123LabelMaxLength
MaximumNacObjectNameLength represents Generated Non Admin Object Name and must be below 63 characters, because it's used within object Label Value
const NameDelimiter = "-"
NameDelimiter defines character that is used to separate name parts
const (
NamespaceEnvVar = "WATCH_NAMESPACE"
)
Common environment variables for the Non Admin Controller
const NamespaceString = "Namespace"
NamespaceString defines a constant for the Namespace string
const TrueString = "True"
TrueString defines a constant for the True string
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.