Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the csiaddons v1alpha1 API group +kubebuilder:object:generate=true +groupName=csiaddons.openshift.io
Index ¶
- Variables
- type CSIAddonsNode
- type CSIAddonsNodeDriver
- type CSIAddonsNodeList
- type CSIAddonsNodeSpec
- type CSIAddonsNodeState
- type CSIAddonsNodeStatus
- type FencingOperationResult
- type NetworkFence
- type NetworkFenceList
- type NetworkFenceSpec
- type NetworkFenceStatus
- type OperationResult
- type ReclaimSpaceJob
- type ReclaimSpaceJobList
- type ReclaimSpaceJobSpec
- type ReclaimSpaceJobStatus
- type SecretSpec
- type TargetSpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "csiaddons.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 CSIAddonsNode ¶
type CSIAddonsNode struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CSIAddonsNodeSpec `json:"spec,omitempty"`
Status CSIAddonsNodeStatus `json:"status,omitempty"`
}
CSIAddonsNode is the Schema for the csiaddonsnode API
func (*CSIAddonsNode) DeepCopy ¶
func (in *CSIAddonsNode) DeepCopy() *CSIAddonsNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIAddonsNode.
func (*CSIAddonsNode) DeepCopyInto ¶
func (in *CSIAddonsNode) DeepCopyInto(out *CSIAddonsNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CSIAddonsNode) DeepCopyObject ¶
func (in *CSIAddonsNode) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CSIAddonsNodeDriver ¶
type CSIAddonsNodeDriver struct {
// Name is the name of the CSI driver that this object refers to.
// This must be the same name returned by the CSI-Addons GetIdentity()
// call for that driver. The name of the driver is in the format:
// `example.csi.ceph.com`
Name string `json:"name"`
// EndPoint is url that contains the ip-address to which the CSI-Addons
// side-car listens to.
EndPoint string `json:"endpoint"`
// NodeID is the ID of the node to identify on which node the side-car
// is running.
NodeID string `json:"nodeID"`
}
func (*CSIAddonsNodeDriver) DeepCopy ¶
func (in *CSIAddonsNodeDriver) DeepCopy() *CSIAddonsNodeDriver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIAddonsNodeDriver.
func (*CSIAddonsNodeDriver) DeepCopyInto ¶
func (in *CSIAddonsNodeDriver) DeepCopyInto(out *CSIAddonsNodeDriver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CSIAddonsNodeList ¶
type CSIAddonsNodeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CSIAddonsNode `json:"items"`
}
CSIAddonsNodeList contains a list of CSIAddonsNode
func (*CSIAddonsNodeList) DeepCopy ¶
func (in *CSIAddonsNodeList) DeepCopy() *CSIAddonsNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIAddonsNodeList.
func (*CSIAddonsNodeList) DeepCopyInto ¶
func (in *CSIAddonsNodeList) DeepCopyInto(out *CSIAddonsNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CSIAddonsNodeList) DeepCopyObject ¶
func (in *CSIAddonsNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CSIAddonsNodeSpec ¶
type CSIAddonsNodeSpec struct {
// Driver is the information of the CSI Driver existing on a node.
// If the driver is uninstalled, this can become empty.
Driver CSIAddonsNodeDriver `json:"driver"`
}
CSIAddonsNodeSpec defines the desired state of CSIAddonsNode
func (*CSIAddonsNodeSpec) DeepCopy ¶
func (in *CSIAddonsNodeSpec) DeepCopy() *CSIAddonsNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIAddonsNodeSpec.
func (*CSIAddonsNodeSpec) DeepCopyInto ¶
func (in *CSIAddonsNodeSpec) DeepCopyInto(out *CSIAddonsNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CSIAddonsNodeState ¶
type CSIAddonsNodeState string
CSIAddonsNodeState defines the state of the operation.
const ( // Connected represents the Connected state. CSIAddonsNodeStateConnected CSIAddonsNodeState = "Connected" // Failed represents the Connection Failed state. CSIAddonsNodeStateFailed CSIAddonsNodeState = "Failed" )
type CSIAddonsNodeStatus ¶
type CSIAddonsNodeStatus struct {
// State represents the state of the CSIAddonsNode object.
// It informs whether or not the CSIAddonsNode is Connected
// to the CSI Driver.
State CSIAddonsNodeState `json:"state,omitempty"`
// Messgae is a human-readable message indicating details about why the CSIAddonsNode
// is in this state.
// +optional
Message string `json:"message,omitempty"`
// Reason is a brief CamelCase string that describes any failure and is meant
// for machine parsing and tidy display in the CLI.
// +optional
Reason string `json:"reason,omitempty"`
}
CSIAddonsNodeStatus defines the observed state of CSIAddonsNode
func (*CSIAddonsNodeStatus) DeepCopy ¶
func (in *CSIAddonsNodeStatus) DeepCopy() *CSIAddonsNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIAddonsNodeStatus.
func (*CSIAddonsNodeStatus) DeepCopyInto ¶
func (in *CSIAddonsNodeStatus) DeepCopyInto(out *CSIAddonsNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FencingOperationResult ¶
type FencingOperationResult string
const ( // FencingOperationResultSucceeded represents the Succeeded operation state. FencingOperationResultSucceeded FencingOperationResult = "Succeeded" // FencingOperationResultFailed represents the Failed operation state. FencingOperationResultFailed FencingOperationResult = "Failed" )
type NetworkFence ¶
type NetworkFence struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NetworkFenceSpec `json:"spec,omitempty"`
Status NetworkFenceStatus `json:"status,omitempty"`
}
+kubebuilder:resource:path=networkfences,scope=Cluster,singular=networkfence NetworkFence is the Schema for the networkfences API
func (*NetworkFence) DeepCopy ¶
func (in *NetworkFence) DeepCopy() *NetworkFence
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkFence.
func (*NetworkFence) DeepCopyInto ¶
func (in *NetworkFence) DeepCopyInto(out *NetworkFence)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkFence) DeepCopyObject ¶
func (in *NetworkFence) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkFenceList ¶
type NetworkFenceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NetworkFence `json:"items"`
}
NetworkFenceList contains a list of NetworkFence
func (*NetworkFenceList) DeepCopy ¶
func (in *NetworkFenceList) DeepCopy() *NetworkFenceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkFenceList.
func (*NetworkFenceList) DeepCopyInto ¶
func (in *NetworkFenceList) DeepCopyInto(out *NetworkFenceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkFenceList) DeepCopyObject ¶
func (in *NetworkFenceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkFenceSpec ¶
type NetworkFenceSpec struct {
// Driver contains the name of CSI driver.
// +kubebuilder:validation:Required
Driver string `json:"driver"`
// Cidrs contains a list of CIDR blocks, which are required to be fenced.
// +kubebuilder:validation:Required
Cidrs []string `json:"cidrs"`
// Secret is a kubernetes secret, which is required to perform the fence/unfence operation.
Secret SecretSpec `json:"secret,omitempty"`
// Parameters is used to pass additional parameters to the CSI driver.
Parameters map[string]string `json:"parameters,omitempty"`
}
NetworkFenceSpec defines the desired state of NetworkFence
func (*NetworkFenceSpec) DeepCopy ¶
func (in *NetworkFenceSpec) DeepCopy() *NetworkFenceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkFenceSpec.
func (*NetworkFenceSpec) DeepCopyInto ¶
func (in *NetworkFenceSpec) DeepCopyInto(out *NetworkFenceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkFenceStatus ¶
type NetworkFenceStatus struct {
// Result indicates the result of NetworkFence operation.
Result FencingOperationResult `json:"result,omitempty"`
// Message contains any message from the NetworkFence operation.
Message string `json:"message,omitempty"`
// Conditions are the list of conditions and their status.
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
NetworkFenceStatus defines the observed state of NetworkFence
func (*NetworkFenceStatus) DeepCopy ¶
func (in *NetworkFenceStatus) DeepCopy() *NetworkFenceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkFenceStatus.
func (*NetworkFenceStatus) DeepCopyInto ¶
func (in *NetworkFenceStatus) DeepCopyInto(out *NetworkFenceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperationResult ¶
type OperationResult string
OperationResult represents the result of reclaim space operation.
const ( // OperationResultSucceeded represents the Succeeded operation state. OperationResultSucceeded OperationResult = "Succeeded" // OperationResultFailed represents the Failed operation state. OperationResultFailed OperationResult = "Failed" )
type ReclaimSpaceJob ¶
type ReclaimSpaceJob struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ReclaimSpaceJobSpec `json:"spec,omitempty"`
Status ReclaimSpaceJobStatus `json:"status,omitempty"`
}
ReclaimSpaceJob is the Schema for the reclaimspacejobs API
func (*ReclaimSpaceJob) DeepCopy ¶
func (in *ReclaimSpaceJob) DeepCopy() *ReclaimSpaceJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReclaimSpaceJob.
func (*ReclaimSpaceJob) DeepCopyInto ¶
func (in *ReclaimSpaceJob) DeepCopyInto(out *ReclaimSpaceJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReclaimSpaceJob) DeepCopyObject ¶
func (in *ReclaimSpaceJob) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReclaimSpaceJobList ¶
type ReclaimSpaceJobList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ReclaimSpaceJob `json:"items"`
}
ReclaimSpaceJobList contains a list of ReclaimSpaceJob
func (*ReclaimSpaceJobList) DeepCopy ¶
func (in *ReclaimSpaceJobList) DeepCopy() *ReclaimSpaceJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReclaimSpaceJobList.
func (*ReclaimSpaceJobList) DeepCopyInto ¶
func (in *ReclaimSpaceJobList) DeepCopyInto(out *ReclaimSpaceJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReclaimSpaceJobList) DeepCopyObject ¶
func (in *ReclaimSpaceJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReclaimSpaceJobSpec ¶
type ReclaimSpaceJobSpec struct {
// Target represents volume target on which the operation will be
// performed.
// +kubebuilder:validation:Required
Target TargetSpec `json:"target"`
// BackOffLimit specifies the number of retries allowed before marking reclaim
// space operation as failed. If not specified, defaults to 6. Maximum allowed
// value is 60 and minimum allowed value is 0.
// +optional
// +kubebuilder:validation:Maximum=60
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default:=6
BackoffLimit int32 `json:"backOffLimit"`
// RetryDeadlineSeconds specifies the duration in seconds relative to the
// start time that the operation may be retried; value MUST be positive integer.
// If not specified, defaults to 600 seconds. Maximum allowed
// value is 1800.
// +optional
// +kubebuilder:validation:Maximum=1800
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default:=600
RetryDeadlineSeconds int64 `json:"retryDeadlineSeconds"`
}
ReclaimSpaceJobSpec defines the desired state of ReclaimSpaceJob
func (*ReclaimSpaceJobSpec) DeepCopy ¶
func (in *ReclaimSpaceJobSpec) DeepCopy() *ReclaimSpaceJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReclaimSpaceJobSpec.
func (*ReclaimSpaceJobSpec) DeepCopyInto ¶
func (in *ReclaimSpaceJobSpec) DeepCopyInto(out *ReclaimSpaceJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReclaimSpaceJobStatus ¶
type ReclaimSpaceJobStatus struct {
// Result indicates the result of ReclaimSpaceJob.
Result OperationResult `json:"result,omitempty"`
// Message contains any message from the ReclaimSpaceJob.
Message string `json:"message,omitempty"`
// ReclaimedSpace indicates the amount of space reclaimed.
ReclaimedSpace resource.Quantity `json:"reclaimedSpace,omitempty"`
// Conditions are the list of conditions and their status.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// Retries indicates the number of times the operation is retried.
Retries int32 `json:"retries,omitempty"`
StartTime *metav1.Time `json:"startTime,omitempty"`
CompletionTime *metav1.Time `json:"completionTime,omitempty"`
}
ReclaimSpaceJobStatus defines the observed state of ReclaimSpaceJob
func (*ReclaimSpaceJobStatus) DeepCopy ¶
func (in *ReclaimSpaceJobStatus) DeepCopy() *ReclaimSpaceJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReclaimSpaceJobStatus.
func (*ReclaimSpaceJobStatus) DeepCopyInto ¶
func (in *ReclaimSpaceJobStatus) DeepCopyInto(out *ReclaimSpaceJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretSpec ¶
type SecretSpec struct {
// Name specifies the name of the secret.
Name string `json:"name,omitempty"`
// Namespace specifies the namespace in which the secret
// is located.
Namespace string `json:"namespace,omitempty"`
}
SecretSpec defines the secrets to be used for the network fencing operation.
func (*SecretSpec) DeepCopy ¶
func (in *SecretSpec) DeepCopy() *SecretSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSpec.
func (*SecretSpec) DeepCopyInto ¶
func (in *SecretSpec) DeepCopyInto(out *SecretSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TargetSpec ¶
type TargetSpec struct {
// PersistentVolumeClaim specifies the target PersistentVolumeClaim name.
PersistentVolumeClaim string `json:"persistentVolumeClaim,omitempty"`
}
TargetSpec defines the targets on which the operation can be performed.
func (*TargetSpec) DeepCopy ¶
func (in *TargetSpec) DeepCopy() *TargetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetSpec.
func (*TargetSpec) DeepCopyInto ¶
func (in *TargetSpec) DeepCopyInto(out *TargetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.