v1

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the broker v1 API group +kubebuilder:object:generate=true +groupName=broker.kanod.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "broker.kanod.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 Baremetaldef

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

	Spec   BaremetaldefSpec   `json:"spec,omitempty"`
	Status BaremetaldefStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Id",type=string,JSONPath=`.spec.id` +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state"

func (*Baremetaldef) DeepCopy

func (in *Baremetaldef) DeepCopy() *Baremetaldef

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

func (*Baremetaldef) DeepCopyInto

func (in *Baremetaldef) DeepCopyInto(out *Baremetaldef)

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

func (*Baremetaldef) DeepCopyObject

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

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

type BaremetaldefList

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

BaremetaldefList contains a list of Baremetaldef

func (*BaremetaldefList) DeepCopy

func (in *BaremetaldefList) DeepCopy() *BaremetaldefList

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

func (*BaremetaldefList) DeepCopyInto

func (in *BaremetaldefList) DeepCopyInto(out *BaremetaldefList)

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

func (*BaremetaldefList) DeepCopyObject

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

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

type BaremetaldefSpec

type BaremetaldefSpec struct {
	// Id of the baremetal
	Id string `json:"id"`
	// BMC address of the baremetal
	Url string `json:"url"`
	// Name of the secret storing the BMC credentials of the baremetal
	BaremetalCredential string `json:"baremetalcredential"`
	// MAC address of the baremetal
	MacAddress string `json:"macAddress"`
	// K8S labels which will be assigned to the baremetalhost created for this baremetal
	K8sLabels map[string]string `json:"k8slabels,omitempty"`
	// K8S annotations which will be assigned to the baremetalhost created for this baremetal
	K8sAnnotations map[string]string `json:"k8sannotations,omitempty"`
	// DeviceName value which will be assigned to the baremetalhost created for this baremetal
	// (for example : “sda“ for real baremetal, “vda“ for libvirt VM)
	RootDeviceHints *bmh.RootDeviceHints `json:"rootDeviceHints,omitempty"`
	// DisableCertificateVerification value which will be assigned to the baremetalhost created for this baremetal
	DisableCertificateVerification bool `json:"disablecertificateverification"`
}

BaremetaldefSpec defines the desired state of Baremetaldef

func (*BaremetaldefSpec) DeepCopy

func (in *BaremetaldefSpec) DeepCopy() *BaremetaldefSpec

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

func (*BaremetaldefSpec) DeepCopyInto

func (in *BaremetaldefSpec) DeepCopyInto(out *BaremetaldefSpec)

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

type BaremetaldefStatus

type BaremetaldefStatus struct {

	// Status of the Baremetaldef
	State string `json:"state"`
}

BaremetaldefStatus defines the observed state of Baremetaldef

func (*BaremetaldefStatus) DeepCopy

func (in *BaremetaldefStatus) DeepCopy() *BaremetaldefStatus

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

func (*BaremetaldefStatus) DeepCopyInto

func (in *BaremetaldefStatus) DeepCopyInto(out *BaremetaldefStatus)

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

type PoolLimit added in v0.1.9

type PoolLimit struct {
	// Label is the label on the baremetal host that is checked
	Label string `json:"label"`
	// The machine is counted if the label has this value. If not specified,
	// it is the presence of the label that is counted.
	Value string `json:"value,omitempty"`
	// Max is the maximum number of machines with this configuration for this
	// user.
	Max int `json:"max"`
}

func (*PoolLimit) DeepCopy added in v0.1.9

func (in *PoolLimit) DeepCopy() *PoolLimit

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

func (*PoolLimit) DeepCopyInto added in v0.1.9

func (in *PoolLimit) DeepCopyInto(out *PoolLimit)

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

type PoolUsage added in v0.1.9

type PoolUsage struct {
	// Label is the label on the baremetal host that is checked
	Label string `json:"label"`
	// The machine is counted if the label has this value. If not specified
	// It is the presence of the label that is counted.
	Value string `json:"value,omitempty"`
	// Current is the current number of machines with this configuration used
	// by this user.
	Current int `json:"current"`
}

func (*PoolUsage) DeepCopy added in v0.1.9

func (in *PoolUsage) DeepCopy() *PoolUsage

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

func (*PoolUsage) DeepCopyInto added in v0.1.9

func (in *PoolUsage) DeepCopyInto(out *PoolUsage)

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

type PoolUser added in v0.1.9

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

	Spec   PoolUserSpec   `json:"spec,omitempty"`
	Status PoolUserStatus `json:"status,omitempty"`
}

PoolUser is the Schema for the poolusers API

func (*PoolUser) DeepCopy added in v0.1.9

func (in *PoolUser) DeepCopy() *PoolUser

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

func (*PoolUser) DeepCopyInto added in v0.1.9

func (in *PoolUser) DeepCopyInto(out *PoolUser)

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

func (*PoolUser) DeepCopyObject added in v0.1.9

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

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

type PoolUserList added in v0.1.9

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

PoolUserList contains a list of PoolUser

func (*PoolUserList) DeepCopy added in v0.1.9

func (in *PoolUserList) DeepCopy() *PoolUserList

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

func (*PoolUserList) DeepCopyInto added in v0.1.9

func (in *PoolUserList) DeepCopyInto(out *PoolUserList)

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

func (*PoolUserList) DeepCopyObject added in v0.1.9

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

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

type PoolUserSpec added in v0.1.9

type PoolUserSpec struct {
	// CredentialName is the name of the secret containing the password associated
	// with the pool user
	CredentialName string `json:"credentialName"`
	// MaxServers it the maximum number of servers that can be registered for this user
	// +kubebuilder:default=-1
	MaxServers int `json:"maxServers,omitempty"`
	// Limits imposed on the resources attached to this user.
	Limits []PoolLimit `json:"limits,omitempty"`
}

PoolUserSpec defines the desired state of PoolUser

func (*PoolUserSpec) DeepCopy added in v0.1.9

func (in *PoolUserSpec) DeepCopy() *PoolUserSpec

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

func (*PoolUserSpec) DeepCopyInto added in v0.1.9

func (in *PoolUserSpec) DeepCopyInto(out *PoolUserSpec)

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

type PoolUserStatus added in v0.1.9

type PoolUserStatus struct {
	Booked int         `json:"used"`
	Usage  []PoolUsage `json:"usage"`
}

PoolUserStatus defines the observed state of PoolUser

func (*PoolUserStatus) DeepCopy added in v0.1.9

func (in *PoolUserStatus) DeepCopy() *PoolUserStatus

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

func (*PoolUserStatus) DeepCopyInto added in v0.1.9

func (in *PoolUserStatus) DeepCopyInto(out *PoolUserStatus)

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

type Pooldef

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

	Spec   PooldefSpec   `json:"spec,omitempty"`
	Status PooldefStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state" +kubebuilder:printcolumn:name="NetworkDefinitions",type="string",JSONPath=".status.networkdefinitions"

func (*Pooldef) DeepCopy

func (in *Pooldef) DeepCopy() *Pooldef

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

func (*Pooldef) DeepCopyInto

func (in *Pooldef) DeepCopyInto(out *Pooldef)

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

func (*Pooldef) DeepCopyObject

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

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

type PooldefList

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

PooldefList contains a list of Pooldef

func (*PooldefList) DeepCopy

func (in *PooldefList) DeepCopy() *PooldefList

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

func (*PooldefList) DeepCopyInto

func (in *PooldefList) DeepCopyInto(out *PooldefList)

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

func (*PooldefList) DeepCopyObject

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

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

type PooldefSpec

type PooldefSpec struct {
	// Name of the user associated with the pool
	UserName string `json:"username"`
	// label for the selection of the baremetal which will be associated with the pool
	LabelSelector map[string]string `json:"labelSelector,omitempty"`
	// Number max of baremetal which can be associated with the pool a negative value
	// means no limit. 0 disable the pool.
	// +kubebuilder:default=-1
	MaxServers int `json:"maxServers,omitempty"`
	// NetworkDefinition list
	NetDefMap map[string]string `json:"netDefMap,omitempty"`
}

PooldefSpec defines the desired state of Pooldef

func (*PooldefSpec) DeepCopy

func (in *PooldefSpec) DeepCopy() *PooldefSpec

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

func (*PooldefSpec) DeepCopyInto

func (in *PooldefSpec) DeepCopyInto(out *PooldefSpec)

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

type PooldefStatus

type PooldefStatus struct {
	// Status of the Pooldef
	State string `json:"state"`
	// +optional
	NetworkDefinitions string `json:"networkdefinitions"`
}

PooldefStatus defines the observed state of Pooldef

func (*PooldefStatus) DeepCopy

func (in *PooldefStatus) DeepCopy() *PooldefStatus

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

func (*PooldefStatus) DeepCopyInto

func (in *PooldefStatus) DeepCopyInto(out *PooldefStatus)

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