v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the vdo v1alpha1 API group +kubebuilder:object:generate=true +groupName=vdo.vmware.com

Index

Constants

View Source
const (
	// NodeStatusPending means that the CPI is yet to configure the node
	NodeStatusPending = NodeStatus("pending")

	// NodeStatusFailed means that CPI failed to configure the node
	NodeStatusFailed = NodeStatus("failed")

	// NodeStatusReady means that the node is configured successfully by CPI.
	NodeStatusReady = NodeStatus("ready")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "vdo.vmware.com", 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 CPIStatus

type CPIStatus struct {
	// +kubebuilder:validation:Enum=Deploying;Deployed;Configuring;Configured;Failed
	// Phase is used to indicate the Phase of the CPI driver
	Phase VDOConfigPhase `json:"phase,omitempty"`
	// StatusMsg is used to display messages in reference to the Phase of the CPI driver
	StatusMsg string `json:"statusMsg,omitempty"`
	// NodeStatus indicates the status of CPI driver with respect to each node in the cluster.
	NodeStatus map[string]NodeStatus `json:"nodeStatus ,omitempty"`
}

func (*CPIStatus) DeepCopy

func (in *CPIStatus) DeepCopy() *CPIStatus

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

func (*CPIStatus) DeepCopyInto

func (in *CPIStatus) DeepCopyInto(out *CPIStatus)

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

type CSIStatus

type CSIStatus struct {
	// +kubebuilder:validation:Enum=Deploying;Deployed;Configuring;Configured;Failed
	// Phase is used to indicate the Phase of the CSI driver
	Phase VDOConfigPhase `json:"phase,omitempty"`
	// StatusMsg is used to display messages in reference to the Phase of the CSI driver
	StatusMsg string `json:"statusMsg,omitempty"`
}

func (*CSIStatus) DeepCopy

func (in *CSIStatus) DeepCopy() *CSIStatus

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

func (*CSIStatus) DeepCopyInto

func (in *CSIStatus) DeepCopyInto(out *CSIStatus)

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

type CloudProviderConfig

type CloudProviderConfig struct {
	// VsphereCloudConfigs refers to the collection of the vSphereCloudConfig resource that holds the vSphere configuration
	VsphereCloudConfigs []string `json:"vsphereCloudConfigs,omitempty"`
	// Topology represents the information required for configuring CPI with zone and region
	Topology TopologyInfo `json:"topology,omitempty"`
}

func (*CloudProviderConfig) DeepCopy

func (in *CloudProviderConfig) DeepCopy() *CloudProviderConfig

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

func (*CloudProviderConfig) DeepCopyInto

func (in *CloudProviderConfig) DeepCopyInto(out *CloudProviderConfig)

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

type ConfigStatus

type ConfigStatus string
const (
	VsphereConfigFailed   ConfigStatus = "failed"
	VsphereConfigVerified ConfigStatus = "verified"
)

type FileVolume

type FileVolume struct {
	// VSanDataStoreUrl refers to the list of datastores that the CSI drivers can access
	VSanDataStoreUrl []string `json:"vsanDataStoreUrl,omitempty"`
	// NetPermissions refers to the list of Net permissions required for CSI driver to access file based volumes
	NetPermissions []NetPermission `json:"netPermissions,omitempty"`
}

func (*FileVolume) DeepCopy

func (in *FileVolume) DeepCopy() *FileVolume

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

func (*FileVolume) DeepCopyInto

func (in *FileVolume) DeepCopyInto(out *FileVolume)

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

type NetPermission

type NetPermission struct {
	// Ip refers to IP Subnet or Range to which these restrictions apply
	Ip string `json:"ips"`
	// Permission refers to access to the volume such as READ_WRITE, READ_ONLY
	Permission string `json:"permissions,omitempty"`
	// RootSquash refers to the access for root user to the volumes.
	// If false, root access is confirmed for all volumes in this IP range
	RootSquash bool `json:"rootSquash,omitempty"`
}

func (*NetPermission) DeepCopy

func (in *NetPermission) DeepCopy() *NetPermission

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

func (*NetPermission) DeepCopyInto

func (in *NetPermission) DeepCopyInto(out *NetPermission)

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

type NodeStatus

type NodeStatus string

NodeStatus is used to type the constants describing possible node states w.r.t CPI configuration.

type StorageProviderConfig

type StorageProviderConfig struct {
	// VsphereCloudConfig refers to the name of the vSphereCloudConfig resource that holds the vSphere configuration
	VsphereCloudConfig string `json:"vsphereCloudConfig"`
	// ClusterDistribution refers to the type of k8s distribution such as TKGI, OpenShift
	ClusterDistribution string `json:"clusterDistribution,omitempty"`
	// FileVolumes refers to the configuration required for file volumes
	FileVolumes FileVolume `json:"fileVolumes,omitempty"`
	// CustomKubeletPath refers to the Kubelet Path in case of custom K8s deployments
	CustomKubeletPath string `json:"customKubeletPath,omitempty"`
}

func (*StorageProviderConfig) DeepCopy

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

func (*StorageProviderConfig) DeepCopyInto

func (in *StorageProviderConfig) DeepCopyInto(out *StorageProviderConfig)

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

type TopologyInfo

type TopologyInfo struct {
	Zone   string `json:"zone"`
	Region string `json:"region"`
}

func (*TopologyInfo) DeepCopy

func (in *TopologyInfo) DeepCopy() *TopologyInfo

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

func (*TopologyInfo) DeepCopyInto

func (in *TopologyInfo) DeepCopyInto(out *TopologyInfo)

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

type VDOConfig

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

	Spec   VDOConfigSpec   `json:"spec,omitempty"`
	Status VDOConfigStatus `json:"status,omitempty"`
}

VDOConfig is the Schema for the vdoconfigs API

func (*VDOConfig) DeepCopy

func (in *VDOConfig) DeepCopy() *VDOConfig

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

func (*VDOConfig) DeepCopyInto

func (in *VDOConfig) DeepCopyInto(out *VDOConfig)

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

func (*VDOConfig) DeepCopyObject

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

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

type VDOConfigList

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

VDOConfigList contains a list of VDOConfig

func (*VDOConfigList) DeepCopy

func (in *VDOConfigList) DeepCopy() *VDOConfigList

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

func (*VDOConfigList) DeepCopyInto

func (in *VDOConfigList) DeepCopyInto(out *VDOConfigList)

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

func (*VDOConfigList) DeepCopyObject

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

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

type VDOConfigPhase

type VDOConfigPhase string
const (
	// Deploying means that VDOConfig is in deploying stage
	Deploying VDOConfigPhase = "Deploying"
	// Deployed means that VDOConfig has been deployed successfully
	Deployed VDOConfigPhase = "Deployed"
	// Configuring means that VDOConfig in in configuring state
	Configuring VDOConfigPhase = "Configuring"
	// Configured means that VDOConfig has configured successfully
	Configured VDOConfigPhase = "Configured"
	// Failed means VDOConfig failed to configure
	Failed VDOConfigPhase = "Failed"
)

type VDOConfigSpec

type VDOConfigSpec struct {
	// CloudProvider refers to the section of config that is required to configure CPI driver
	CloudProvider CloudProviderConfig `json:"cloudProvider,omitempty"`
	// StorageProvider refers to the section of config that is required to configure CSI driver
	StorageProvider StorageProviderConfig `json:"storageProvider"`
}

VDOConfigSpec defines the desired state of VDOConfig

func (*VDOConfigSpec) DeepCopy

func (in *VDOConfigSpec) DeepCopy() *VDOConfigSpec

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

func (*VDOConfigSpec) DeepCopyInto

func (in *VDOConfigSpec) DeepCopyInto(out *VDOConfigSpec)

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

type VDOConfigStatus

type VDOConfigStatus struct {
	// CPIStatus refers to the configuration status of the CPI driver
	CPIStatus CPIStatus `json:"cpi,omitempty"`
	// CSIStatus refers to the configuration status of the CSI driver
	CSIStatus CSIStatus `json:"csi,omitempty"`
}

VDOConfigStatus defines the observed state of VDOConfig

func (*VDOConfigStatus) DeepCopy

func (in *VDOConfigStatus) DeepCopy() *VDOConfigStatus

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

func (*VDOConfigStatus) DeepCopyInto

func (in *VDOConfigStatus) DeepCopyInto(out *VDOConfigStatus)

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

type VsphereCloudConfig

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

	Spec   VsphereCloudConfigSpec   `json:"spec,omitempty"`
	Status VsphereCloudConfigStatus `json:"status,omitempty"`
}

VsphereCloudConfig is the Schema for the vspherecloudconfigs API

func (*VsphereCloudConfig) DeepCopy

func (in *VsphereCloudConfig) DeepCopy() *VsphereCloudConfig

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

func (*VsphereCloudConfig) DeepCopyInto

func (in *VsphereCloudConfig) DeepCopyInto(out *VsphereCloudConfig)

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

func (*VsphereCloudConfig) DeepCopyObject

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

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

type VsphereCloudConfigList

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

VsphereCloudConfigList contains a list of VsphereCloudConfig

func (*VsphereCloudConfigList) DeepCopy

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

func (*VsphereCloudConfigList) DeepCopyInto

func (in *VsphereCloudConfigList) DeepCopyInto(out *VsphereCloudConfigList)

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

func (*VsphereCloudConfigList) DeepCopyObject

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

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

type VsphereCloudConfigSpec

type VsphereCloudConfigSpec struct {
	// VCIP refers to IP of the vcenter which is used to configure for VDO
	VcIP string `json:"vcIp"`
	// Insecure flag determines if connection to VC can be insecured
	Insecure bool `json:"insecure"`
	// Credentials refers to the name of k8s secret storing the VC creds
	Credentials string `json:"credentials"`
	// thumbprint refers to the SSL Thumbprint to be used to establish a secure connection to VC
	Thumbprint string `json:"thumbprint,omitempty"`
	// datacenters refers to list of datacenters on the VC which the configured user account can access
	DataCenters []string `json:"datacenters"`
}

VsphereCloudConfigSpec defines the desired state of VsphereCloudConfig

func (*VsphereCloudConfigSpec) DeepCopy

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

func (*VsphereCloudConfigSpec) DeepCopyInto

func (in *VsphereCloudConfigSpec) DeepCopyInto(out *VsphereCloudConfigSpec)

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

type VsphereCloudConfigStatus

type VsphereCloudConfigStatus struct {
	//Config represents the verification status of VDO configuration
	// +kubebuilder:validation:Enum=verified;failed;
	Config ConfigStatus `json:"config"`
	//Message displays text indicating the reason for failure in validating VDO config
	Message string `json:"message,omitempty"`
}

VsphereCloudConfigStatus defines the observed state of VsphereCloudConfig

func (*VsphereCloudConfigStatus) DeepCopy

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

func (*VsphereCloudConfigStatus) DeepCopyInto

func (in *VsphereCloudConfigStatus) DeepCopyInto(out *VsphereCloudConfigStatus)

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