v1alpha1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the nodes v1alpha1 API group +kubebuilder:object:generate=true +groupName=nodes.peppy-ratio.dev

Index

Constants

View Source
const (
	// PhaseNew represents the NEW, not initialized phase.
	PhaseNew = ""
	// PhasePending represents the "PENDING" phase. The controller is reconciling load balancer.
	PhasePending = "PENDING"
	// PhaseRegistering represents the "REGISTERING" phase. The controller is registering to load balancer.
	PhaseRegistering = "REGISTERING"
	// PhaseReady represents the "READY" phase. The controller registered to load balancer.
	PhaseReady = "READY"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nodes.peppy-ratio.dev", Version: "v1alpha1"}

	// 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 ApiKeySpec

type ApiKeySpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	User string `json:"user,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Fingerprint string `json:"fingerprint,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Tenancy string `json:"tenancy,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Region string `json:"region,omitempty"`

	// +kubebuilder:validation:Required
	PrivateKey PrivateKeySpec `json:"privateKey"`
}

func (*ApiKeySpec) DeepCopy

func (in *ApiKeySpec) DeepCopy() *ApiKeySpec

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

func (*ApiKeySpec) DeepCopyInto

func (in *ApiKeySpec) DeepCopyInto(out *ApiKeySpec)

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

type LBRegistrar

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

	Spec   LBRegistrarSpec   `json:"spec,omitempty"`
	Status LBRegistrarStatus `json:"status,omitempty"`
}

LBRegistrar is the Schema for the lbregistrars API

func (*LBRegistrar) DeepCopy

func (in *LBRegistrar) DeepCopy() *LBRegistrar

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

func (*LBRegistrar) DeepCopyInto

func (in *LBRegistrar) DeepCopyInto(out *LBRegistrar)

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

func (*LBRegistrar) DeepCopyObject

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

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

type LBRegistrarList

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

LBRegistrarList contains a list of LBRegistrar

func (*LBRegistrarList) DeepCopy

func (in *LBRegistrarList) DeepCopy() *LBRegistrarList

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

func (*LBRegistrarList) DeepCopyInto

func (in *LBRegistrarList) DeepCopyInto(out *LBRegistrarList)

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

func (*LBRegistrarList) DeepCopyObject

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

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

type LBRegistrarSpec

type LBRegistrarSpec struct {

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	LoadBalancerId string `json:"loadBalancerId,omitempty"`

	// +kubebuilder:default:=80
	Port int `json:"port,omitempty"`

	// +kubebuilder:default:=1
	Weight int `json:"weight,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	BackendSetName string `json:"backendSetName,omitempty"`

	// +kubebuilder:validation:Required
	ApiKey ApiKeySpec `json:"apiKey,omitempty"`
}

LBRegistrarSpec defines the desired state of LBRegistrar

func (*LBRegistrarSpec) DeepCopy

func (in *LBRegistrarSpec) DeepCopy() *LBRegistrarSpec

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

func (*LBRegistrarSpec) DeepCopyInto

func (in *LBRegistrarSpec) DeepCopyInto(out *LBRegistrarSpec)

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

type LBRegistrarStatus

type LBRegistrarStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Phase string `json:"phase,omitempty"`
}

LBRegistrarStatus defines the observed state of LBRegistrar

func (*LBRegistrarStatus) DeepCopy

func (in *LBRegistrarStatus) DeepCopy() *LBRegistrarStatus

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

func (*LBRegistrarStatus) DeepCopyInto

func (in *LBRegistrarStatus) DeepCopyInto(out *LBRegistrarStatus)

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

type PrivateKeySpec

type PrivateKeySpec struct {
	Namespace    string                   `json:"namespace,omitempty"`
	SecretKeyRef corev1.SecretKeySelector `json:"secretKeyRef"`
}

func (*PrivateKeySpec) DeepCopy

func (in *PrivateKeySpec) DeepCopy() *PrivateKeySpec

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

func (*PrivateKeySpec) DeepCopyInto

func (in *PrivateKeySpec) DeepCopyInto(out *PrivateKeySpec)

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