v1alpha1

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

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the oadp v1alpha1 API group +kubebuilder:object:generate=true +groupName=oadp.openshift.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "oadp.openshift.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type NonAdminBackup

type NonAdminBackup struct {
	Spec   NonAdminBackupSpec   `json:"spec,omitempty"`
	Status NonAdminBackupStatus `json:"status,omitempty"`

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
}

NonAdminBackup is the Schema for the nonadminbackups API

func (*NonAdminBackup) DeepCopy

func (in *NonAdminBackup) DeepCopy() *NonAdminBackup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminBackup.

func (*NonAdminBackup) DeepCopyInto

func (in *NonAdminBackup) DeepCopyInto(out *NonAdminBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NonAdminBackup) DeepCopyObject

func (in *NonAdminBackup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NonAdminBackupList

type NonAdminBackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NonAdminBackup `json:"items"`
}

NonAdminBackupList contains a list of NonAdminBackup

func (*NonAdminBackupList) DeepCopy

func (in *NonAdminBackupList) DeepCopy() *NonAdminBackupList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminBackupList.

func (*NonAdminBackupList) DeepCopyInto

func (in *NonAdminBackupList) DeepCopyInto(out *NonAdminBackupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NonAdminBackupList) DeepCopyObject

func (in *NonAdminBackupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NonAdminBackupSpec

type NonAdminBackupSpec struct {
	// BackupSpec defines the specification for a Velero backup.
	BackupSpec *velerov1.BackupSpec `json:"backupSpec"`

	// DeleteBackup removes the NonAdminBackup and its associated VeleroBackup from the cluster,
	// as well as the corresponding object storage
	// +optional
	DeleteBackup bool `json:"deleteBackup,omitempty"`

	// ForceDeleteBackup removes the NonAdminBackup and its associated VeleroBackup from the cluster,
	// regardless of whether deletion from object storage succeeds or fails
	// +optional
	ForceDeleteBackup bool `json:"forceDeleteBackup,omitempty"`
}

NonAdminBackupSpec defines the desired state of NonAdminBackup

func (*NonAdminBackupSpec) DeepCopy

func (in *NonAdminBackupSpec) DeepCopy() *NonAdminBackupSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminBackupSpec.

func (*NonAdminBackupSpec) DeepCopyInto

func (in *NonAdminBackupSpec) DeepCopyInto(out *NonAdminBackupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NonAdminBackupStatus

type NonAdminBackupStatus struct {
	// +optional
	VeleroBackup *VeleroBackup `json:"veleroBackup,omitempty"`

	// +optional
	VeleroDeleteBackupRequest *VeleroDeleteBackupRequest `json:"veleroDeleteBackupRequest,omitempty"`

	// queueInfo is used to estimate how many backups are scheduled before the given VeleroBackup in the OADP namespace.
	// This number is not guaranteed to be accurate, but it should be close. It's inaccurate for cases when
	// Velero pod is not running or being restarted after Backup object were created.
	// It counts only VeleroBackups that are still subject to be handled by OADP/Velero.
	// +optional
	QueueInfo *QueueInfo `json:"queueInfo,omitempty"`

	// phase is a simple one high-level summary of the lifecycle of an NonAdminBackup.
	Phase NonAdminPhase `json:"phase,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

NonAdminBackupStatus defines the observed state of NonAdminBackup

func (*NonAdminBackupStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminBackupStatus.

func (*NonAdminBackupStatus) DeepCopyInto

func (in *NonAdminBackupStatus) DeepCopyInto(out *NonAdminBackupStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NonAdminCondition

type NonAdminCondition string

NonAdminCondition are used for more detailed information supporing NonAdminBackupPhase state. +kubebuilder:validation:Enum=Accepted;Queued;Deleting

const (
	NonAdminConditionAccepted NonAdminCondition = "Accepted"
	NonAdminConditionQueued   NonAdminCondition = "Queued"
	NonAdminConditionDeleting NonAdminCondition = "Deleting"
)

Predefined conditions for NonAdminController objects. One NonAdminController object may have multiple conditions. It is more granular knowledge of the NonAdminController object and represents the array of the conditions through which the NonAdminController has or has not passed

type NonAdminPhase

type NonAdminPhase string

NonAdminPhase is a simple one high-level summary of the lifecycle of a NonAdminBackup or NonAdminRestore. +kubebuilder:validation:Enum=New;BackingOff;Created;Deleting

const (
	// NonAdminPhaseNew - NonAdmin object was accepted by the OpenShift cluster, but it has not yet been processed by the NonAdminController
	NonAdminPhaseNew NonAdminPhase = "New"
	// NonAdminPhaseBackingOff - Velero object was not created due to NonAdmin object error (configuration or similar)
	NonAdminPhaseBackingOff NonAdminPhase = "BackingOff"
	// NonAdminPhaseCreated - Velero object was created. The Phase will not have additional information about it.
	NonAdminPhaseCreated NonAdminPhase = "Created"
	// NonAdminPhaseDeleting - Velero object is pending deletion. The Phase will not have additional information about it.
	NonAdminPhaseDeleting NonAdminPhase = "Deleting"
)

type NonAdminRestore

type NonAdminRestore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NonAdminRestoreSpec   `json:"spec,omitempty"`
	Status NonAdminRestoreStatus `json:"status,omitempty"`
}

NonAdminRestore is the Schema for the nonadminrestores API

func (*NonAdminRestore) DeepCopy

func (in *NonAdminRestore) DeepCopy() *NonAdminRestore

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminRestore.

func (*NonAdminRestore) DeepCopyInto

func (in *NonAdminRestore) DeepCopyInto(out *NonAdminRestore)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NonAdminRestore) DeepCopyObject

func (in *NonAdminRestore) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NonAdminRestoreList

type NonAdminRestoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NonAdminRestore `json:"items"`
}

NonAdminRestoreList contains a list of NonAdminRestore

func (*NonAdminRestoreList) DeepCopy

func (in *NonAdminRestoreList) DeepCopy() *NonAdminRestoreList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminRestoreList.

func (*NonAdminRestoreList) DeepCopyInto

func (in *NonAdminRestoreList) DeepCopyInto(out *NonAdminRestoreList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NonAdminRestoreList) DeepCopyObject

func (in *NonAdminRestoreList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NonAdminRestoreSpec

type NonAdminRestoreSpec struct {
	// restoreSpec defines the specification for a Velero restore.
	RestoreSpec *velerov1.RestoreSpec `json:"restoreSpec"`
}

NonAdminRestoreSpec defines the desired state of NonAdminRestore

func (*NonAdminRestoreSpec) DeepCopy

func (in *NonAdminRestoreSpec) DeepCopy() *NonAdminRestoreSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminRestoreSpec.

func (*NonAdminRestoreSpec) DeepCopyInto

func (in *NonAdminRestoreSpec) DeepCopyInto(out *NonAdminRestoreSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NonAdminRestoreStatus

type NonAdminRestoreStatus struct {
	// +optional
	VeleroRestore *VeleroRestore `json:"veleroRestore,omitempty"`

	// phase is a simple one high-level summary of the lifecycle of an NonAdminRestore.
	Phase NonAdminPhase `json:"phase,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

NonAdminRestoreStatus defines the observed state of NonAdminRestore

func (*NonAdminRestoreStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonAdminRestoreStatus.

func (*NonAdminRestoreStatus) DeepCopyInto

func (in *NonAdminRestoreStatus) DeepCopyInto(out *NonAdminRestoreStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type QueueInfo

type QueueInfo struct {
	// estimatedQueuePosition is the number of operations ahead in the queue (0 if not queued)
	EstimatedQueuePosition int `json:"estimatedQueuePosition"`
}

QueueInfo holds the queue position for a specific operation.

func (*QueueInfo) DeepCopy

func (in *QueueInfo) DeepCopy() *QueueInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueInfo.

func (*QueueInfo) DeepCopyInto

func (in *QueueInfo) DeepCopyInto(out *QueueInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VeleroBackup

type VeleroBackup struct {
	// status captures the current status of the Velero backup.
	// +optional
	Status *velerov1.BackupStatus `json:"status,omitempty"`

	// nacuuid references the Velero Backup object by it's label containing same NACUUID.
	// +optional
	NACUUID string `json:"nacuuid,omitempty"`

	// references the Velero Backup object by it's name.
	// +optional
	Name string `json:"name,omitempty"`

	// namespace references the Namespace in which Velero backup exists.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

VeleroBackup contains information of the related Velero backup object.

func (*VeleroBackup) DeepCopy

func (in *VeleroBackup) DeepCopy() *VeleroBackup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VeleroBackup.

func (*VeleroBackup) DeepCopyInto

func (in *VeleroBackup) DeepCopyInto(out *VeleroBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VeleroDeleteBackupRequest

type VeleroDeleteBackupRequest struct {
	// status captures the current status of the Velero delete backup request.
	// +optional
	Status *velerov1.DeleteBackupRequestStatus `json:"status,omitempty"`

	// nacuuid references the Velero delete backup request object by it's label containing same NACUUID.
	// +optional
	NACUUID string `json:"nacuuid,omitempty"`

	// name references the Velero delete backup request object by it's name.
	// +optional
	Name string `json:"name,omitempty"`

	// namespace references the Namespace in which Velero delete backup request exists.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

VeleroDeleteBackupRequest contains information of the related Velero delete backup request object.

func (*VeleroDeleteBackupRequest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VeleroDeleteBackupRequest.

func (*VeleroDeleteBackupRequest) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VeleroRestore

type VeleroRestore struct {
	// status captures the current status of the Velero restore.
	// +optional
	Status *velerov1.RestoreStatus `json:"status,omitempty"`

	// references the Velero Restore object by it's name.
	// +optional
	Name string `json:"name,omitempty"`

	// nacuuid references the Velero Restore object by it's label containing same NACUUID.
	// +optional
	NACUUID string `json:"nacuuid,omitempty"`

	// namespace references the Namespace in which Velero Restore exists.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

VeleroRestore contains information of the related Velero restore object.

func (*VeleroRestore) DeepCopy

func (in *VeleroRestore) DeepCopy() *VeleroRestore

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VeleroRestore.

func (*VeleroRestore) DeepCopyInto

func (in *VeleroRestore) DeepCopyInto(out *VeleroRestore)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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