Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the storage v1 API group +kubebuilder:object:generate=true +groupName=storage.metal-stack.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "storage.metal-stack.io", 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 Duros ¶
type Duros struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DurosSpec `json:"spec,omitempty"` Status DurosStatus `json:"status,omitempty"` }
Duros is the Schema for the Duros API +kubebuilder:object:root=true +kubebuilder:printcolumn:name="ProjectID",type=string,JSONPath=`.spec.metalProjectID` +kubebuilder:printcolumn:name="StorageClasses",type=string,JSONPath=`.spec.storageClasses` +kubebuilder:subresource:status
func (*Duros) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Duros.
func (*Duros) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Duros) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DurosList ¶
type DurosList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Duros `json:"items"` }
DurosList contains a list of Duros
func (*DurosList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DurosList.
func (*DurosList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DurosList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DurosSpec ¶
type DurosSpec struct { // MetalProjectID is the projectID of this deployment MetalProjectID string `json:"metalProjectID,omitempty"` // StorageClasses defines what storageclasses should be deployed StorageClasses []StorageClass `json:"storageClasses,omitempty"` }
DurosSpec defines the desired state of Duros
func (*DurosSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DurosSpec.
func (*DurosSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DurosStatus ¶
type DurosStatus struct { // ManagedResourceStatuses contains a list of statuses of resources managed by this controller ManagedResourceStatuses []ManagedResourceStatus `json:"managedResourceStatuses" description:"A list of managed resource statuses"` }
DurosStatus defines the observed state of Duros
func (*DurosStatus) DeepCopy ¶
func (in *DurosStatus) DeepCopy() *DurosStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DurosStatus.
func (*DurosStatus) DeepCopyInto ¶
func (in *DurosStatus) DeepCopyInto(out *DurosStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthState ¶ added in v0.3.0
type HealthState string
HealthState describes the state of a managed resource
const ( // HealthStateRunning indicates that the resource is running HealthStateRunning HealthState = "Running" // HealthStateNotRunning indicates that the resource is not running HealthStateNotRunning HealthState = "Not Running" )
type ManagedResourceStatus ¶ added in v0.3.0
type ManagedResourceStatus struct { // Name is the name of the resource described by this status Name string `json:"name" description:"The name of the resource"` // Group is the api group kind of the resource described by this status Group string `json:"group" description:"The group kind of the resource"` // State is the actual state of the managed resource State HealthState `json:"state" description:"The state of this resource"` // Description further describes the state of the managed resource Description string `json:"description" description:"The description of the state of this component"` // LastUpdateTime is the last time the status was updated LastUpdateTime metav1.Time `json:"lastUpdateTime" description:"The time when this status was last updated"` }
func (*ManagedResourceStatus) DeepCopy ¶ added in v0.3.0
func (in *ManagedResourceStatus) DeepCopy() *ManagedResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedResourceStatus.
func (*ManagedResourceStatus) DeepCopyInto ¶ added in v0.3.0
func (in *ManagedResourceStatus) DeepCopyInto(out *ManagedResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClass ¶
type StorageClass struct { Name string `json:"name"` ReplicaCount int `json:"replicas"` Compression bool `json:"compression"` Default bool `json:"default" description:"if set to true this storageclass is configured as default"` Encryption bool `json:"encryption,omitempty"` }
StorageClass defines the storageClass parameters
func (*StorageClass) DeepCopy ¶
func (in *StorageClass) DeepCopy() *StorageClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
func (*StorageClass) DeepCopyInto ¶
func (in *StorageClass) DeepCopyInto(out *StorageClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.