constant

package
v0.0.0-...-d05a4b2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package constant contains all common constants used in the project

Index

Constants

View Source
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.

View Source
const EmptyString = ""

EmptyString defines a constant for the empty string

View Source
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

View Source
const NameDelimiter = "-"

NameDelimiter defines character that is used to separate name parts

View Source
const (
	NamespaceEnvVar = "WATCH_NAMESPACE"
)

Common environment variables for the Non Admin Controller

View Source
const NamespaceString = "Namespace"

NamespaceString defines a constant for the Namespace string

View Source
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.

Jump to

Keyboard shortcuts

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