v1alpha1

package
v0.0.0-...-5aba54a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.storage.ramendr.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cache.storage.ramendr.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 ReplicationState

type ReplicationState string

ReplicationState represents the replication operations to be performed on the volume

const (
	// Promote the protected PVCs to primary
	Primary ReplicationState = "primary"

	// Demote the proteced PVCs to secondary
	Secondary ReplicationState = "secondary"
)

type State

type State string
const (
	PrimaryState   State = "Primary"
	SecondaryState State = "Secondary"
	UnknownState   State = "Unknown"
)

type VolumeGroupReplication

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

	Spec   VolumeGroupReplicationSpec   `json:"spec,omitempty"`
	Status VolumeGroupReplicationStatus `json:"status,omitempty"`
}

VolumeGroupReplication is the Schema for the volumegroupreplications API

func (*VolumeGroupReplication) DeepCopy

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

func (*VolumeGroupReplication) DeepCopyInto

func (in *VolumeGroupReplication) DeepCopyInto(out *VolumeGroupReplication)

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

func (*VolumeGroupReplication) DeepCopyObject

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

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

type VolumeGroupReplicationClass

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

	Spec   VolumeGroupReplicationClassSpec   `json:"spec,omitempty"`
	Status VolumeGroupReplicationClassStatus `json:"status,omitempty"`
}

VolumeGroupReplicationClass is the Schema for the volumegroupreplicationclasses API

func (*VolumeGroupReplicationClass) DeepCopy

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

func (*VolumeGroupReplicationClass) DeepCopyInto

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

func (*VolumeGroupReplicationClass) DeepCopyObject

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

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

type VolumeGroupReplicationClassList

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

VolumeGroupReplicationClassList contains a list of VolumeGroupReplicationClass

func (*VolumeGroupReplicationClassList) DeepCopy

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

func (*VolumeGroupReplicationClassList) DeepCopyInto

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

func (*VolumeGroupReplicationClassList) DeepCopyObject

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

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

type VolumeGroupReplicationClassSpec

type VolumeGroupReplicationClassSpec struct {

	// Provisioner is the name of storage provisioner
	Provisioner string `json:"provisioner"`

	// Parameters is a key-value map with storage provisioner specific configurations for
	Parameters map[string]string `json:"parameters,omitempty"`
}

VolumeGroupReplicationClassSpec defines the desired state of VolumeGroupReplicationClass

func (*VolumeGroupReplicationClassSpec) DeepCopy

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

func (*VolumeGroupReplicationClassSpec) DeepCopyInto

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

type VolumeGroupReplicationClassStatus

type VolumeGroupReplicationClassStatus struct{}

VolumeGroupReplicationClassStatus defines the observed state of VolumeGroupReplicationClass

func (*VolumeGroupReplicationClassStatus) DeepCopy

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

func (*VolumeGroupReplicationClassStatus) DeepCopyInto

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

type VolumeGroupReplicationList

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

VolumeGroupReplicationList contains a list of VolumeGroupReplication

func (*VolumeGroupReplicationList) DeepCopy

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

func (*VolumeGroupReplicationList) DeepCopyInto

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

func (*VolumeGroupReplicationList) DeepCopyObject

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

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

type VolumeGroupReplicationSpec

type VolumeGroupReplicationSpec struct {

	// Desired state of all volumes [primary or secondary] in this replication group;
	// this value is propagated to children VolumeReplication CRs
	// +kubebuilder:validation:Enum=primary;secondary
	ReplicationState ReplicationState `json:"replicationState"`

	// VolumeGroupReplicationClass may be left nil to indicate that
	// the default class will be used.
	VolumeGroupReplicationClass string `json:"volumeGroupReplicationClass"`

	// A label query over persistent volume claims to be grouped together
	// for replication. This labelSelector will be used to match
	// the label added to a PVC.
	Selector *metav1.LabelSelector `json:"selector"`
}

VolumeGroupReplicationSpec defines the desired state of VolumeGroupReplication

func (*VolumeGroupReplicationSpec) DeepCopy

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

func (*VolumeGroupReplicationSpec) DeepCopyInto

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

type VolumeGroupReplicationStatus

type VolumeGroupReplicationStatus struct {
	State   State  `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
	// Conditions are the list of conditions and their status.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// observedGeneration is the last generation change the operator has dealt with
	// +optional
	ObservedGeneration int64        `json:"observedGeneration,omitempty"`
	LastStartTime      *metav1.Time `json:"lastStartTime,omitempty"`

	LastCompletionTime *metav1.Time `json:"lastCompletionTime,omitempty"`
	// lastGroupSyncTime is the time of the most recent successful synchronization of all PVCs
	//+optional
	LastGroupSyncTime *metav1.Time `json:"lastGroupSyncTime,omitempty"`

	// lastGroupSyncDuration is the max time from all the successful synced PVCs
	//+optional
	LastGroupSyncDuration *metav1.Duration `json:"lastGroupSyncDuration,omitempty"`

	// lastGroupSyncBytes is the total bytes transferred from the most recent
	// successful synchronization of all PVCs
	//+optional
	LastGroupSyncBytes *int64 `json:"lastGroupSyncBytes,omitempty"`
}

VolumeGroupReplicationStatus defines the observed state of VolumeGroupReplication

func (*VolumeGroupReplicationStatus) DeepCopy

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

func (*VolumeGroupReplicationStatus) DeepCopyInto

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