v1

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the csi v1 API group +kubebuilder:object:generate=true +groupName=csi.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "csi.ibm.com", Version: "v1"}

	// 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 CSISidecar

type CSISidecar struct {
	// The name of the csi sidecar image
	Name string `json:"name"`

	// The repository of the csi sidecar image
	Repository string `json:"repository"`

	// The tag of the csi sidecar image
	Tag string `json:"tag"`

	// The pullPolicy of the csi sidecar image
	// +kubebuilder:validation:Optional
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
}

func (*CSISidecar) DeepCopy

func (in *CSISidecar) DeepCopy() *CSISidecar

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

func (*CSISidecar) DeepCopyInto

func (in *CSISidecar) DeepCopyInto(out *CSISidecar)

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

type Definition added in v1.10.0

type Definition struct {
	NodeName          string `json:"nodeName"`
	ManagementAddress string `json:"managementAddress"`

	// +kubebuilder:validation:Optional
	SecretName string `json:"secretName"`
	// +kubebuilder:validation:Optional
	SecretNamespace string `json:"secretNamespace"`
	// +kubebuilder:validation:Optional
	NodeId string `json:"nodeId"`
	// +kubebuilder:validation:Optional
	ConnectivityType string `json:"connectivityType"`
	// +kubebuilder:validation:Optional
	Ports []string `json:"ports"`
	// +kubebuilder:validation:Optional
	NodeNameOnStorage string `json:"nodeNameOnStorage"`
	// +kubebuilder:validation:Optional
	IOGroups []int `json:"ioGroups"`
}

Definition defines the observed state of HostDefinition

func (*Definition) DeepCopy added in v1.10.0

func (in *Definition) DeepCopy() *Definition

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

func (*Definition) DeepCopyInto added in v1.10.0

func (in *Definition) DeepCopyInto(out *Definition)

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

type DriverPhase

type DriverPhase string
const (
	DriverPhaseNone     DriverPhase = ""
	DriverPhaseCreating DriverPhase = "Creating"
	DriverPhaseRunning  DriverPhase = "Running"
	DriverPhaseFailed   DriverPhase = "Failed"
)

type HostDefiner added in v1.10.0

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

	Spec   HostDefinerSpec   `json:"spec,omitempty"`
	Status HostDefinerStatus `json:"status,omitempty"`
}

HostDefiner is the Schema for the hostdefiners API

func (*HostDefiner) DeepCopy added in v1.10.0

func (in *HostDefiner) DeepCopy() *HostDefiner

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

func (*HostDefiner) DeepCopyInto added in v1.10.0

func (in *HostDefiner) DeepCopyInto(out *HostDefiner)

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

func (*HostDefiner) DeepCopyObject added in v1.10.0

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

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

type HostDefinerList added in v1.10.0

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

HostDefinerList contains a list of HostDefiner

func (*HostDefinerList) DeepCopy added in v1.10.0

func (in *HostDefinerList) DeepCopy() *HostDefinerList

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

func (*HostDefinerList) DeepCopyInto added in v1.10.0

func (in *HostDefinerList) DeepCopyInto(out *HostDefinerList)

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

func (*HostDefinerList) DeepCopyObject added in v1.10.0

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

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

type HostDefinerSpec added in v1.10.0

type HostDefinerSpec struct {
	HostDefiner IBMBlockHostDefinerSpec `json:"hostDefiner"`

	ImagePullSecrets []string `json:"imagePullSecrets,omitempty"`
}

HostDefinerSpec defines the desired state of HostDefiner

func (*HostDefinerSpec) DeepCopy added in v1.10.0

func (in *HostDefinerSpec) DeepCopy() *HostDefinerSpec

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

func (*HostDefinerSpec) DeepCopyInto added in v1.10.0

func (in *HostDefinerSpec) DeepCopyInto(out *HostDefinerSpec)

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

type HostDefinerStatus added in v1.10.0

type HostDefinerStatus struct {
	Phase            DriverPhase `json:"phase"`
	HostDefinerReady bool        `json:"hostDefinerReady"`

	// Version is the current driver version
	Version string `json:"version"`
}

HostDefinerStatus defines the observed state of HostDefiner

func (*HostDefinerStatus) DeepCopy added in v1.10.0

func (in *HostDefinerStatus) DeepCopy() *HostDefinerStatus

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

func (*HostDefinerStatus) DeepCopyInto added in v1.10.0

func (in *HostDefinerStatus) DeepCopyInto(out *HostDefinerStatus)

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

type HostDefinition added in v1.10.0

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

	Spec   HostDefinitionSpec   `json:"spec,omitempty"`
	Status HostDefinitionStatus `json:"status,omitempty"`
}

HostDefinition is the Schema for the hostdefinitions API +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.spec.hostDefinition.nodeName` +kubebuilder:printcolumn:name="Management_Address",type=string,JSONPath=`.spec.hostDefinition.managementAddress`

func (*HostDefinition) DeepCopy added in v1.10.0

func (in *HostDefinition) DeepCopy() *HostDefinition

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

func (*HostDefinition) DeepCopyInto added in v1.10.0

func (in *HostDefinition) DeepCopyInto(out *HostDefinition)

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

func (*HostDefinition) DeepCopyObject added in v1.10.0

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

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

type HostDefinitionList added in v1.10.0

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

HostDefinitionList contains a list of HostDefinition

func (*HostDefinitionList) DeepCopy added in v1.10.0

func (in *HostDefinitionList) DeepCopy() *HostDefinitionList

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

func (*HostDefinitionList) DeepCopyInto added in v1.10.0

func (in *HostDefinitionList) DeepCopyInto(out *HostDefinitionList)

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

func (*HostDefinitionList) DeepCopyObject added in v1.10.0

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

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

type HostDefinitionSpec added in v1.10.0

type HostDefinitionSpec struct {
	HostDefinition Definition `json:"hostDefinition"`
}

HostDefinitionSpec defines the desired state of HostDefinition

func (*HostDefinitionSpec) DeepCopy added in v1.10.0

func (in *HostDefinitionSpec) DeepCopy() *HostDefinitionSpec

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

func (*HostDefinitionSpec) DeepCopyInto added in v1.10.0

func (in *HostDefinitionSpec) DeepCopyInto(out *HostDefinitionSpec)

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

type HostDefinitionStatus added in v1.10.0

type HostDefinitionStatus struct {
	Phase DriverPhase `json:"phase"`
}

HostDefinitionStatus defines the status of the host definition on the storage

func (*HostDefinitionStatus) DeepCopy added in v1.10.0

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

func (*HostDefinitionStatus) DeepCopyInto added in v1.10.0

func (in *HostDefinitionStatus) DeepCopyInto(out *HostDefinitionStatus)

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

type IBMBlockCSI

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

	Spec   IBMBlockCSISpec   `json:"spec,omitempty"`
	Status IBMBlockCSIStatus `json:"status,omitempty"`
}

IBMBlockCSI is the Schema for the ibmblockcsis API +kubebuilder:resource:path=ibmblockcsis,scope=Namespaced,shortName=ibc

func (*IBMBlockCSI) DeepCopy

func (in *IBMBlockCSI) DeepCopy() *IBMBlockCSI

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

func (*IBMBlockCSI) DeepCopyInto

func (in *IBMBlockCSI) DeepCopyInto(out *IBMBlockCSI)

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

func (*IBMBlockCSI) DeepCopyObject

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

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

type IBMBlockCSIControllerSpec

type IBMBlockCSIControllerSpec struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`

	// +kubebuilder:validation:Optional
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`

	// +kubebuilder:validation:Optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// +kubebuilder:validation:Optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}

IBMBlockCSIControllerSpec defines the desired state of IBMBlockCSIController

func (*IBMBlockCSIControllerSpec) DeepCopy

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

func (*IBMBlockCSIControllerSpec) DeepCopyInto

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

type IBMBlockCSIList

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

IBMBlockCSIList contains a list of IBMBlockCSI

func (*IBMBlockCSIList) DeepCopy

func (in *IBMBlockCSIList) DeepCopy() *IBMBlockCSIList

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

func (*IBMBlockCSIList) DeepCopyInto

func (in *IBMBlockCSIList) DeepCopyInto(out *IBMBlockCSIList)

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

func (*IBMBlockCSIList) DeepCopyObject

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

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

type IBMBlockCSINodeSpec

type IBMBlockCSINodeSpec struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`

	// +kubebuilder:validation:Optional
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`

	// +kubebuilder:validation:Optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// +kubebuilder:validation:Optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}

IBMBlockCSINodeSpec defines the desired state of IBMBlockCSINode

func (*IBMBlockCSINodeSpec) DeepCopy

func (in *IBMBlockCSINodeSpec) DeepCopy() *IBMBlockCSINodeSpec

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

func (*IBMBlockCSINodeSpec) DeepCopyInto

func (in *IBMBlockCSINodeSpec) DeepCopyInto(out *IBMBlockCSINodeSpec)

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

type IBMBlockCSISpec

type IBMBlockCSISpec struct {
	Controller IBMBlockCSIControllerSpec `json:"controller"`
	Node       IBMBlockCSINodeSpec       `json:"node"`

	// +kubebuilder:validation:Optional
	Sidecars []CSISidecar `json:"sidecars,omitempty"`

	// +kubebuilder:validation:Optional
	ImagePullSecrets []string `json:"imagePullSecrets,omitempty"`

	HealthPort uint16 `json:"healthPort,omitempty"`
}

IBMBlockCSISpec defines the desired state of IBMBlockCSI

func (*IBMBlockCSISpec) DeepCopy

func (in *IBMBlockCSISpec) DeepCopy() *IBMBlockCSISpec

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

func (*IBMBlockCSISpec) DeepCopyInto

func (in *IBMBlockCSISpec) DeepCopyInto(out *IBMBlockCSISpec)

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

type IBMBlockCSIStatus

type IBMBlockCSIStatus struct {
	// Phase is the driver running phase
	Phase           DriverPhase `json:"phase"`
	ControllerReady bool        `json:"controllerReady"`
	NodeReady       bool        `json:"nodeReady"`

	// Version is the current driver version
	Version string `json:"version"`
}

IBMBlockCSIStatus defines the observed state of IBMBlockCSI

func (*IBMBlockCSIStatus) DeepCopy

func (in *IBMBlockCSIStatus) DeepCopy() *IBMBlockCSIStatus

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

func (*IBMBlockCSIStatus) DeepCopyInto

func (in *IBMBlockCSIStatus) DeepCopyInto(out *IBMBlockCSIStatus)

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

type IBMBlockHostDefinerSpec added in v1.10.0

type IBMBlockHostDefinerSpec struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`

	// +kubebuilder:validation:Optional
	Prefix string `json:"prefix"`
	// +kubebuilder:validation:Optional
	ConnectivityType string `json:"connectivityType"`
	// +kubebuilder:validation:Optional
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"`
	// +kubebuilder:validation:Optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
	// +kubebuilder:validation:Optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=true
	AllowDelete bool `json:"allowDelete,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	DynamicNodeLabeling bool `json:"dynamicNodeLabeling,omitempty"`
}

IBMBlockHostDefinerSpec defines the observed state of HostDefiner

func (*IBMBlockHostDefinerSpec) DeepCopy added in v1.10.0

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

func (*IBMBlockHostDefinerSpec) DeepCopyInto added in v1.10.0

func (in *IBMBlockHostDefinerSpec) DeepCopyInto(out *IBMBlockHostDefinerSpec)

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