v1

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 3

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

View Source
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

func (in *Duros) DeepCopy() *Duros

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

func (*Duros) DeepCopyInto

func (in *Duros) DeepCopyInto(out *Duros)

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

func (*Duros) DeepCopyObject

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

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

func (in *DurosList) DeepCopy() *DurosList

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

func (*DurosList) DeepCopyInto

func (in *DurosList) DeepCopyInto(out *DurosList)

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

func (*DurosList) DeepCopyObject

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

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

func (in *DurosSpec) DeepCopy() *DurosSpec

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

func (*DurosSpec) DeepCopyInto

func (in *DurosSpec) DeepCopyInto(out *DurosSpec)

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

type DurosStatus

type DurosStatus struct {
	// ReconcileStatus describes the current status of the reconciliation
	ReconcileStatus ReconcileStatus `json:"reconcileStatus" description:"The current status of the reconciliation of this resource"`
	// 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

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 ReconcileStatus added in v0.9.0

type ReconcileStatus struct {
	// LastReconcile is the point in time when the last reconciliation took place
	LastReconcile *metav1.Time `json:"lastReconcile,omitempty" description:"Timestamp of last reconciliation"`
	// Error indicates a reconciliation error that occurred, it's empty when there is no error
	Error *string `json:"error,omitempty" description:"If set describes that there is an error during reconciliation"`
}

func (*ReconcileStatus) DeepCopy added in v0.9.0

func (in *ReconcileStatus) DeepCopy() *ReconcileStatus

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

func (*ReconcileStatus) DeepCopyInto added in v0.9.0

func (in *ReconcileStatus) DeepCopyInto(out *ReconcileStatus)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL