v1

package
v0.0.0-...-706d5b7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the ibm v1 API group +k8s:deepcopy-gen=package,register +groupName=csi.ibm.com

Package v1 contains API Schema definitions for the ibm v1 API group +k8s:deepcopy-gen=package,register +groupName=csi.ibm.com

Index

Constants

This section is empty.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

Types

type CSIClusterSpec

type CSIClusterSpec struct {
	// The cluster id of the gpfs cluster specified (mandatory).
	Id string `json:"id"`

	// Require a secure SSL connection to connect to GPFS.
	SecureSslMode bool `json:"secureSslMode"`

	// A string specifying a secret resource name.
	Secrets string `json:"secrets,omitempty"`

	// A string specifying a cacert resource name.
	Cacert string `json:"cacert,omitempty"`

	// The primary file system for the GPFS cluster.
	Primary CSIPrimarySpec `json:"primary,omitempty"`

	// A collection of targets for REST calls.
	RestApi []CSIRestApiSpec `json:"restApi,omitempty"`
}
CSIClusterSpec  defines the desired state of CSIi Scale Cluster

+k8s:openapi-gen=true

func (*CSIClusterSpec) DeepCopy

func (in *CSIClusterSpec) DeepCopy() *CSIClusterSpec

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

func (*CSIClusterSpec) DeepCopyInto

func (in *CSIClusterSpec) DeepCopyInto(out *CSIClusterSpec)

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

type CSIPrimarySpec

type CSIPrimarySpec struct {
	// The name of the primary filesystem.
	PrimaryFs string `json:"primaryFs,omitempty"`

	// The name of the primary fileset, created in primaryFs
	PrimaryFset string `json:"primaryFset,omitempty"`

	// Inode Limit for Primary Fileset
	InodeLimit string `json:"inodeLimit,omitempty"`

	// RemoteCluster ID, in case Primary fileset is on remote cluster
	RemoteCluster string `json:"remoteCluster,omitempty"`

	// Remote FS name, in case we use Remote cluster for Primary Fs
	RemoteFs string `json:"remoteFs,omitempty"`
}

Defines the primary filesystem. +k8s:openapi-gen=true

func (*CSIPrimarySpec) DeepCopy

func (in *CSIPrimarySpec) DeepCopy() *CSIPrimarySpec

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

func (*CSIPrimarySpec) DeepCopyInto

func (in *CSIPrimarySpec) DeepCopyInto(out *CSIPrimarySpec)

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

type CSIRestApiSpec

type CSIRestApiSpec struct {
	// The hostname of the REST server.
	GuiHost string `json:"guiHost,omitempty"`

	// The port number running the REST server.
	GuiPort string `json:"guiPort,omitempty"`
}

Defines the desired REST API access info. +k8s:openapi-gen=true

func (*CSIRestApiSpec) DeepCopy

func (in *CSIRestApiSpec) DeepCopy() *CSIRestApiSpec

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

func (*CSIRestApiSpec) DeepCopyInto

func (in *CSIRestApiSpec) DeepCopyInto(out *CSIRestApiSpec)

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

type CSIScaleOperator

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

	Spec   CSIScaleOperatorSpec   `json:"spec,omitempty"`
	Status CSIScaleOperatorStatus `json:"status,omitempty"`
}

CSIScaleOperator is the Schema for the csiscaleoperators API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*CSIScaleOperator) DeepCopy

func (in *CSIScaleOperator) DeepCopy() *CSIScaleOperator

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

func (*CSIScaleOperator) DeepCopyInto

func (in *CSIScaleOperator) DeepCopyInto(out *CSIScaleOperator)

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

func (*CSIScaleOperator) DeepCopyObject

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

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

type CSIScaleOperatorCondition

type CSIScaleOperatorCondition struct {
	IsRunning bool `json:"isRunning,omitempty"`
}

CSIScaleOperatorCondition defines the observed Condition of CSIScaleOperator +k8s:openapi-gen=true

func (*CSIScaleOperatorCondition) DeepCopy

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

func (*CSIScaleOperatorCondition) DeepCopyInto

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

type CSIScaleOperatorList

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

CSIScaleOperatorList contains a list of CSIScaleOperator

func (*CSIScaleOperatorList) DeepCopy

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

func (*CSIScaleOperatorList) DeepCopyInto

func (in *CSIScaleOperatorList) DeepCopyInto(out *CSIScaleOperatorList)

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

func (*CSIScaleOperatorList) DeepCopyObject

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

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

type CSIScaleOperatorSpec

type CSIScaleOperatorSpec struct {

	// Attacher image for csi (actually attaches to the storage).
	Attacher string `json:"attacher,omitempty"`

	// Provisioner image for csi (actually issues provision requests).
	Provisioner string `json:"provisioner,omitempty"`

	// Sidecar container image for the csi spectrum scale plugin pods.
	DriverRegistrar string `json:"driverRegistrar,omitempty"`

	// Image name for the csi spectrum scale plugin container.
	SpectrumScale string `json:"spectrumScale,omitempty"`

	// The path to the gpfs file system mounted on the host machine.
	ScaleHostpath string `json:"scaleHostpath,omitempty"`

	// Node selector for attacher
	AttacherNodeSelector []KeyVal `json:"attacherNodeSelector,omitempty"`

	// Node selector for provisioner
	ProvisionerNodeSelector []KeyVal `json:"provisionerNodeSelector,omitempty"`

	// Node Selector for Plugin.
	PluginNodeSelector []KeyVal `json:"pluginNodeSelector,omitempty"`

	// Node Mapping information for plugin
	NodeMapping []NodeMap `json:"nodeMapping,omitempty"`

	// A collection of gpfs cluster properties for the csi driver to mount.
	Clusters []CSIClusterSpec `json:"clusters,omitempty"`

	// Trigger used by the operator for secret changes.
	SecretCounter int `json:"secretCounter,omitempty"`
}

CSIScaleOperatorSpec defines the desired state of CSIScaleOperator +k8s:openapi-gen=true

func (*CSIScaleOperatorSpec) DeepCopy

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

func (*CSIScaleOperatorSpec) DeepCopyInto

func (in *CSIScaleOperatorSpec) DeepCopyInto(out *CSIScaleOperatorSpec)

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

type CSIScaleOperatorStatus

type CSIScaleOperatorStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Conditions []CSIScaleOperatorCondition `json:"conditions,omitempty"`
}

CSIScaleOperatorStatus defines the observed state of CSIScaleOperator +k8s:openapi-gen=true

func (*CSIScaleOperatorStatus) DeepCopy

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

func (*CSIScaleOperatorStatus) DeepCopyInto

func (in *CSIScaleOperatorStatus) DeepCopyInto(out *CSIScaleOperatorStatus)

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

type KeyVal

type KeyVal struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

Node Selector Key value +k8s:openapi-gen=true

func (*KeyVal) DeepCopy

func (in *KeyVal) DeepCopy() *KeyVal

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

func (*KeyVal) DeepCopyInto

func (in *KeyVal) DeepCopyInto(out *KeyVal)

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

type NodeMap

type NodeMap struct {
	K8sNode           string `json:"k8sNode,omitempty"`
	SpectrumscaleNode string `json:"spectrumscaleNode,omitempty"`
}

Node Mapping +k8s:openapi-gen=true

func (*NodeMap) DeepCopy

func (in *NodeMap) DeepCopy() *NodeMap

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

func (*NodeMap) DeepCopyInto

func (in *NodeMap) DeepCopyInto(out *NodeMap)

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