v1

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 added in v0.2.0

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

func (in *BareMetalDef) DeepCopy() *BareMetalDef

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

func (*BareMetalDef) DeepCopyInto added in v0.2.0

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

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

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

type BareMetalDefList added in v0.2.0

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

func (in *BareMetalDefList) DeepCopy() *BareMetalDefList

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

func (*BareMetalDefList) DeepCopyInto added in v0.2.0

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

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

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

type BareMetalDefSpec added in v0.2.0

type BareMetalDefSpec struct {
	// Id of the baremetal
	Id string `json:"id"`
	// Name of pooldef booking the baremetal or empty
	PoolDef string `json:"poolDef,omitempty"`
	// List of network bindings
	NetDefMap map[string]string `json:"netDefMap,omitempty"`
	// 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 added in v0.2.0

func (in *BareMetalDefSpec) DeepCopy() *BareMetalDefSpec

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

func (*BareMetalDefSpec) DeepCopyInto added in v0.2.0

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

type BareMetalDefStatus struct {

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

BareMetalDefStatus defines the observed state of BareMetalDef

func (*BareMetalDefStatus) DeepCopy added in v0.2.0

func (in *BareMetalDefStatus) DeepCopy() *BareMetalDefStatus

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

func (*BareMetalDefStatus) DeepCopyInto added in v0.2.0

func (in *BareMetalDefStatus) DeepCopyInto(out *BareMetalDefStatus)

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

type PoolDef added in v0.2.0

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

func (in *PoolDef) DeepCopy() *PoolDef

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

func (*PoolDef) DeepCopyInto added in v0.2.0

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

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

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

type PoolDefList added in v0.2.0

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

func (in *PoolDefList) DeepCopy() *PoolDefList

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

func (*PoolDefList) DeepCopyInto added in v0.2.0

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

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

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

type PoolDefSpec added in v0.2.0

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

func (in *PoolDefSpec) DeepCopy() *PoolDefSpec

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

func (*PoolDefSpec) DeepCopyInto added in v0.2.0

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

type PoolDefStatus struct {
	// Status of the PoolDef
	State string `json:"state"`
	// +optional
	NetworkDefinitions []string `json:"networkdefinitions,omitempty"`
}

PoolDefStatus defines the observed state of PoolDef

func (*PoolDefStatus) DeepCopy added in v0.2.0

func (in *PoolDefStatus) DeepCopy() *PoolDefStatus

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

func (*PoolDefStatus) DeepCopyInto added in v0.2.0

func (in *PoolDefStatus) DeepCopyInto(out *PoolDefStatus)

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.

Jump to

Keyboard shortcuts

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