v1alpha1

package
v3.3.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme helps add all the stored functions to the scheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "cns.vmware.com",
	Version: "v1alpha1",
}

SchemeGroupVersion define schema Group and version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CnsVolumeOperationRequest

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

	Spec   CnsVolumeOperationRequestSpec   `json:"spec,omitempty"`
	Status CnsVolumeOperationRequestStatus `json:"status,omitempty"`
}

CnsVolumeOperationRequest is the Schema for the cnsvolumeoperationrequests API

func (*CnsVolumeOperationRequest) DeepCopy

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

func (*CnsVolumeOperationRequest) DeepCopyInto

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

func (*CnsVolumeOperationRequest) DeepCopyObject

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

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

type CnsVolumeOperationRequestList

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

CnsVolumeOperationRequestList contains a list of CnsVolumeOperationRequest

func (*CnsVolumeOperationRequestList) DeepCopy

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

func (*CnsVolumeOperationRequestList) DeepCopyInto

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

func (*CnsVolumeOperationRequestList) DeepCopyObject

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

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

type CnsVolumeOperationRequestSpec

type CnsVolumeOperationRequestSpec struct {
	// Name represents the name of the instance.
	// There is no strict naming convention for instances; it is dependent on the caller.
	Name string `json:"name"`
}

CnsVolumeOperationRequestSpec defines the desired state of CnsVolumeOperationRequest

func (*CnsVolumeOperationRequestSpec) DeepCopy

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

func (*CnsVolumeOperationRequestSpec) DeepCopyInto

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

type CnsVolumeOperationRequestStatus

type CnsVolumeOperationRequestStatus struct {
	// VolumeID is the unique ID of the backend volume.
	// Populated during successful CreateVolume calls.
	VolumeID string `json:"volumeID,omitempty"`
	// SnapshotID is the unique ID of the backend snapshot.
	// Populated during successful CreateSnapshot calls.
	SnapshotID string `json:"snapshotID,omitempty"`
	// Populated with the latest capacity on every successful ExtendVolume call for a volume.
	Capacity int64 `json:"capacity,omitempty"`
	// ErrorCount is the number of times this operation failed for this volume.
	// Incremented by clients when new OperationDetails are added with error set.
	ErrorCount int `json:"errorCount,omitempty"`
	// StorageQuotaDetails stores the details required by the CSI driver and syncer to
	// access the quota custom resources.
	// +optional
	StorageQuotaDetails *QuotaDetails `json:"quotaDetails,omitempty"`
	// FirstOperationDetails stores the details of the first operation performed on the volume.
	// For debugging purposes, clients should ensure that this information is never overwritten.
	// More recent operation details should be stored in the LatestOperationDetails field.
	FirstOperationDetails OperationDetails `json:"firstOperationDetails,omitempty"`
	// LatestOperationDetails stores the details of the latest operations performed
	// on the volume. Should have a maximum of 10 entries.
	LatestOperationDetails []OperationDetails `json:"latestOperationDetails,omitempty"`
}

CnsVolumeOperationRequestStatus defines the observed state of CnsVolumeOperationRequest

func (*CnsVolumeOperationRequestStatus) DeepCopy

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

func (*CnsVolumeOperationRequestStatus) DeepCopyInto

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

type OperationDetails

type OperationDetails struct {
	// TaskInvocationTimestamp represents the time at which the task was invoked.
	// This timestamp is derived from the cluster and may not correspond to the
	// task invocation timestamp on CNS.
	TaskInvocationTimestamp metav1.Time `json:"taskInvocationTimestamp"`
	// TaskID stores the task for an operation that was invoked on CNS for a volume.
	TaskID string `json:"taskId"`
	// vCenter server on which the task is created
	VCenterServer string `json:"vCenterServer,omitempty"`
	// OpID stores the OpID for a task that was invoked on CNS for a volume.
	OpID string `json:"opId,omitempty"`
	// TaskStatus describes the current status of the task invoked on CNS.
	// Valid strings are "In Progress", "Successful", "PartiallyFailed" and "Failed".
	TaskStatus string `json:"taskStatus,omitempty"`
	// Error represents the error returned if the task fails on CNS.
	// Defaults to empty string.
	Error string `json:"error,omitempty"`
}

OperationDetails stores the details of the operation performed on a volume.

func (*OperationDetails) DeepCopy

func (in *OperationDetails) DeepCopy() *OperationDetails

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

func (*OperationDetails) DeepCopyInto

func (in *OperationDetails) DeepCopyInto(out *OperationDetails)

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

type QuotaDetails added in v3.2.0

type QuotaDetails struct {
	// Reserved keeps a track of the quantity that should be reserved in
	// storage quota during a create volume/snapshot operation.
	// +optional
	Reserved *resource.Quantity `json:"reserved,omitempty"`
	// StoragePolicyId is the ID associated with the storage policy.
	StoragePolicyId string `json:"storagePolicyId,omitempty"`
	// StorageClassName is the name of K8s storage class associated with the given storage policy.
	StorageClassName string `json:"storageClassName,omitempty"`
	// Namespace of the PersistentVolumeClaim.
	Namespace string `json:"namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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