v1alpha1

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the linstor v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=linstor.linbit.com

Package v1alpha1 contains API Schema definitions for the linstor v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=linstor.linbit.com

Index

Constants

This section is empty.

Variables

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

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

Functions

This section is empty.

Types

type LinstorControllerSet

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

	Spec   LinstorControllerSetSpec   `json:"spec,omitempty"`
	Status LinstorControllerSetStatus `json:"status,omitempty"`
}

LinstorControllerSet is the Schema for the linstorcontrollersets API +kubebuilder:subresource:status +kubebuilder:resource:path=linstorcontrollersets,scope=Namespaced

func (*LinstorControllerSet) DeepCopy

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

func (*LinstorControllerSet) DeepCopyInto

func (in *LinstorControllerSet) DeepCopyInto(out *LinstorControllerSet)

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

func (*LinstorControllerSet) DeepCopyObject

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

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

type LinstorControllerSetList

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

LinstorControllerSetList contains a list of LinstorControllerSet

func (*LinstorControllerSetList) DeepCopy

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

func (*LinstorControllerSetList) DeepCopyInto

func (in *LinstorControllerSetList) DeepCopyInto(out *LinstorControllerSetList)

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

func (*LinstorControllerSetList) DeepCopyObject

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

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

type LinstorControllerSetSpec

type LinstorControllerSetSpec struct {
	EtcdURL                  string `json:"etcdURL"`
	DrbdRepoCred             string `json:"drbdRepoCred"`
	LinstorControllerImage   string `json:"linstorControllerImage"`
	LinstorControllerVersion string `json:"linstorControllerVersion"`
}

LinstorControllerSetSpec defines the desired state of LinstorControllerSet

func (*LinstorControllerSetSpec) DeepCopy

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

func (*LinstorControllerSetSpec) DeepCopyInto

func (in *LinstorControllerSetSpec) DeepCopyInto(out *LinstorControllerSetSpec)

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

type LinstorControllerSetStatus

type LinstorControllerSetStatus struct {

	// Errors remaining that will trigger reconciliations.
	Errors []string `json:"errors"`
	// ControllerStatus information.
	ControllerStatus *NodeStatus `json:"ControllerStatus"`
	// SatelliteStatuses by hostname.
	SatelliteStatuses map[string]*SatelliteStatus `json:"SatelliteStatuses"`
}

LinstorControllerSetStatus defines the observed state of LinstorControllerSet

func (*LinstorControllerSetStatus) DeepCopy

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

func (*LinstorControllerSetStatus) DeepCopyInto

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

type LinstorNodeSet

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

	Spec   LinstorNodeSetSpec   `json:"spec,omitempty"`
	Status LinstorNodeSetStatus `json:"status,omitempty"`
}

LinstorNodeSet is the Schema for the linstornodesets API +kubebuilder:subresource:status +kubebuilder:resource:path=linstornodesets,scope=Namespaced

func (*LinstorNodeSet) DeepCopy

func (in *LinstorNodeSet) DeepCopy() *LinstorNodeSet

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

func (*LinstorNodeSet) DeepCopyInto

func (in *LinstorNodeSet) DeepCopyInto(out *LinstorNodeSet)

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

func (*LinstorNodeSet) DeepCopyObject

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

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

type LinstorNodeSetList

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

LinstorNodeSetList contains a list of LinstorNodeSet

func (*LinstorNodeSetList) DeepCopy

func (in *LinstorNodeSetList) DeepCopy() *LinstorNodeSetList

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

func (*LinstorNodeSetList) DeepCopyInto

func (in *LinstorNodeSetList) DeepCopyInto(out *LinstorNodeSetList)

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

func (*LinstorNodeSetList) DeepCopyObject

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

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

type LinstorNodeSetSpec

type LinstorNodeSetSpec struct {

	// StoragePools is a list of StoragePools for LinstorNodeSet to manage.
	StoragePools *StoragePools `json:"storagePools"`

	//DisableDRBDKernelModuleInjection turns off automatic injection of the DRBD
	// kernel module on the host system when set to true.
	DisableDRBDKernelModuleInjection bool `json:"disableDRBDKernelModuleInjection"`

	//DrbdRepoCred is the name of the k8s secret with the repo credential
	DrbdRepoCred string `json:"drbdRepoCred"`

	//LinstorSatImage & Version  is the LINSTOR Satellite image location and version/tag
	LinstorSatImage   string `json:"linstorSatImage"`
	LinstorSatVersion string `json:"linstorSatVersion"`

	//LinstorKernelModImage & Version  is the DRBD Kernel injection image location and version/tag
	LinstorKernelModImage   string `json:"linstorKernelModImage"`
	LinstorKernelModVersion string `json:"linstorKernelModVersion"`
}

LinstorNodeSetSpec defines the desired state of LinstorNodeSet

func (*LinstorNodeSetSpec) DeepCopy

func (in *LinstorNodeSetSpec) DeepCopy() *LinstorNodeSetSpec

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

func (*LinstorNodeSetSpec) DeepCopyInto

func (in *LinstorNodeSetSpec) DeepCopyInto(out *LinstorNodeSetSpec)

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

type LinstorNodeSetStatus

type LinstorNodeSetStatus struct {

	// Errors remaining that will trigger reconciliations.
	Errors []string `json:"errors"`
	// SatelliteStatuses by hostname.
	SatelliteStatuses map[string]*SatelliteStatus `json:"SatelliteStatuses"`
}

LinstorNodeSetStatus defines the observed state of LinstorNodeSet

func (*LinstorNodeSetStatus) DeepCopy

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

func (*LinstorNodeSetStatus) DeepCopyInto

func (in *LinstorNodeSetStatus) DeepCopyInto(out *LinstorNodeSetStatus)

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

type NodeStatus

type NodeStatus struct {
	// Indicates if the node has been created on the controller.
	RegisteredOnController bool `json:"registeredOnController"`
	// The hostname of the kubelet running the node
	NodeName string `json:"nodeName"`
}

NodeStatus simple status of the node in the linstor cluster.

func (*NodeStatus) DeepCopy

func (in *NodeStatus) DeepCopy() *NodeStatus

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

func (*NodeStatus) DeepCopyInto

func (in *NodeStatus) DeepCopyInto(out *NodeStatus)

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

type SatelliteStatus

type SatelliteStatus struct {
	NodeStatus
	// As indicated by Linstor
	ConnectionStatus string `json:"connectionStatus"`
	// StoragePoolStatuses by storage pool name.
	StoragePoolStatuses map[string]*StoragePoolStatus `json:"storagePoolStatus"`
}

SatelliteStatus should provide all the information that the reconsile loop needs to manage the operation of the LINSTOR Satellite.

func (*SatelliteStatus) DeepCopy

func (in *SatelliteStatus) DeepCopy() *SatelliteStatus

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

func (*SatelliteStatus) DeepCopyInto

func (in *SatelliteStatus) DeepCopyInto(out *SatelliteStatus)

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

type StoragePool

type StoragePool interface {
	ToLinstorStoragePool() lapi.StoragePool
}

StoragePool is the generalized type of storage pools.

type StoragePoolLVM

type StoragePoolLVM struct {
	// Name of the storage pool.
	Name string `json:"name"`
	// Name of underlying lvm group
	VolumeGroup string `json:"volumeGroup"`
}

StoragePoolLVM represents LVM storage pool to be managed by a LinstorNodeSet

func (*StoragePoolLVM) DeepCopy

func (in *StoragePoolLVM) DeepCopy() *StoragePoolLVM

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

func (*StoragePoolLVM) DeepCopyInto

func (in *StoragePoolLVM) DeepCopyInto(out *StoragePoolLVM)

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

func (*StoragePoolLVM) ToLinstorStoragePool

func (s *StoragePoolLVM) ToLinstorStoragePool() lapi.StoragePool

ToLinstorStoragePool returns lapi.StoragePool presentation of the StoragePoolLVM

type StoragePoolLVMThin

type StoragePoolLVMThin struct {
	StoragePoolLVM
	// Name of underlying lvm thin volume
	ThinVolume string `json:"thinVolume"`
}

StoragePoolLVMThin represents LVM Thin storage pool to be managed by a LinstorNodeSet

func (*StoragePoolLVMThin) DeepCopy

func (in *StoragePoolLVMThin) DeepCopy() *StoragePoolLVMThin

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

func (*StoragePoolLVMThin) DeepCopyInto

func (in *StoragePoolLVMThin) DeepCopyInto(out *StoragePoolLVMThin)

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

func (*StoragePoolLVMThin) ToLinstorStoragePool

func (s *StoragePoolLVMThin) ToLinstorStoragePool() lapi.StoragePool

ToLinstorStoragePool returns lapi.StoragePool presentation of the StoragePoolLVMThin

type StoragePoolStatus

type StoragePoolStatus struct {
	// The name of the storage pool.
	Name string `json:"name"`
	// The hostname of the kubelet hosting the storage pool.
	NodeName string `json:"nodeName"`
	// Provider is the underlying storage, lvm, zfs, etc.
	Provider string `json:"provider"`
	// Usage reporting
	FreeCapacity  int64 `json:"freeCapacity"`
	TotalCapacity int64 `json:"totalCapacity"`
}

StoragePoolStatus reports basic information about storage pool state.

func NewStoragePoolStatus

func NewStoragePoolStatus(pool lapi.StoragePool) *StoragePoolStatus

NewStoragePoolStatus convert from golinstor StoragePool to StoragePoolStatus.

func (*StoragePoolStatus) DeepCopy

func (in *StoragePoolStatus) DeepCopy() *StoragePoolStatus

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

func (*StoragePoolStatus) DeepCopyInto

func (in *StoragePoolStatus) DeepCopyInto(out *StoragePoolStatus)

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

type StoragePools

type StoragePools struct {
	// LVMPools for LinstorNodeSet to manage.
	LVMPools []*StoragePoolLVM `json:"lvmPools"`
	// LVMThinPools for LinstorNodeSet to manage.
	LVMThinPools []*StoragePoolLVMThin `json:"lvmThinPools"`
}

StoragePools hold lists of linstor storage pools supported by this operator.

func (*StoragePools) DeepCopy

func (in *StoragePools) DeepCopy() *StoragePools

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

func (*StoragePools) DeepCopyInto

func (in *StoragePools) DeepCopyInto(out *StoragePools)

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