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`
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 {
// SecretRef to the create JWT Token
// TODO, this can be used to detect required key rotation
SecretRef string `json:"secret,omitempty" description:"Reference to JWT Token generated on the duros storage side for this project"`
}
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 StorageClass ¶
type StorageClass struct {
Name string `json:"name"`
ReplicaCount int `json:"replicas"`
Compression bool `json:"compression"`
}
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.