constant

package
v0.0.0-...-fbca919 Latest Latest
Warning

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

Go to latest
Published: May 20, 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?
	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.

View Source
const EmptyString = ""

EmptyString defines a constant for the empty string

View Source
const MaxKubernetesNameLength = 253

MaxKubernetesNameLength represents maximum length of the name in k8s

View Source
const NameSpaceString = "Namespace"

NameSpaceString k8s Namespace string

View Source
const (
	NamespaceEnvVar = "WATCH_NAMESPACE"
)

Common environment variables for the Non Admin Controller

View Source
const VeleroBackupNamePrefix = "nab"

VeleroBackupNamePrefix represents the prefix for the object name generated by the NonAdminController

Variables

View Source
var OadpNamespace = os.Getenv(NamespaceEnvVar)

OadpNamespace is the namespace OADP operator is installed

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