Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the vdo v1alpha1 API group +kubebuilder:object:generate=true +groupName=vdo.vmware.com
Index ¶
- Constants
- Variables
- type CPIStatus
- type CSIStatus
- type CloudProviderConfig
- type ConfigStatus
- type FileVolume
- type NetPermission
- type NodeStatus
- type StorageProviderConfig
- type TopologyInfo
- type VDOConfig
- type VDOConfigList
- type VDOConfigPhase
- type VDOConfigSpec
- type VDOConfigStatus
- type VsphereCloudConfig
- type VsphereCloudConfigList
- type VsphereCloudConfigSpec
- type VsphereCloudConfigStatus
Constants ¶
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPIStatus.
func (*CPIStatus) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStatus.
func (*CSIStatus) DeepCopyInto ¶
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 ¶
func (in *StorageProviderConfig) DeepCopy() *StorageProviderConfig
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VDOConfig.
func (*VDOConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VDOConfig) DeepCopyObject ¶
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 ¶
func (in *VsphereCloudConfigList) DeepCopy() *VsphereCloudConfigList
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 ¶
func (in *VsphereCloudConfigSpec) DeepCopy() *VsphereCloudConfigSpec
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 ¶
func (in *VsphereCloudConfigStatus) DeepCopy() *VsphereCloudConfigStatus
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.