v1alpha1

package
v0.0.0-...-e1524c0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=metalk8s.scality.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "metalk8s.scality.com", 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 ClusterConfig

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

	Spec   ClusterConfigSpec   `json:"spec,omitempty"`
	Status ClusterConfigStatus `json:"status,omitempty"`
}

ClusterConfig is the Schema for the clusterconfigs API

func (*ClusterConfig) DeepCopy

func (in *ClusterConfig) DeepCopy() *ClusterConfig

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

func (*ClusterConfig) DeepCopyInto

func (in *ClusterConfig) DeepCopyInto(out *ClusterConfig)

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

func (*ClusterConfig) DeepCopyObject

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

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

func (*ClusterConfig) GetCondition

func (v *ClusterConfig) GetCondition(kind string) *Condition

Get a condition from ClusterConfig

func (*ClusterConfig) SetCPIngressConfiguredCondition

func (v *ClusterConfig) SetCPIngressConfiguredCondition(status metav1.ConditionStatus, reason string, message string)

Set ControlPlaneIngressConfigured Condition

func (*ClusterConfig) SetCPIngressVIPConfiguredCondition

func (v *ClusterConfig) SetCPIngressVIPConfiguredCondition(status metav1.ConditionStatus, reason string, message string)

Set ControlPlaneIngressVirtualIP Configured Condition

func (*ClusterConfig) SetCPIngressVIPReadyCondition

func (v *ClusterConfig) SetCPIngressVIPReadyCondition(status metav1.ConditionStatus, reason string, message string)

Set ControlPlaneIngressVirtualIP Ready Condition

func (*ClusterConfig) SetCondition

func (v *ClusterConfig) SetCondition(kind string, status metav1.ConditionStatus, reason string, message string)

Set a condition on ClusterConfig

func (*ClusterConfig) SetReadyCondition

func (v *ClusterConfig) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)

Set Ready Condition

func (*ClusterConfig) SetWPVIPConfiguredCondition

func (v *ClusterConfig) SetWPVIPConfiguredCondition(status metav1.ConditionStatus, reason string, message string)

Set WorkloadPlaneVirtualIPPool Configured Condition

func (*ClusterConfig) SetWPVIPReadyCondition

func (v *ClusterConfig) SetWPVIPReadyCondition(status metav1.ConditionStatus, reason string, message string)

Set WorkloadPlaneVirtualIPPool Ready Condition

type ClusterConfigList

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

ClusterConfigList contains a list of ClusterConfig

func (*ClusterConfigList) DeepCopy

func (in *ClusterConfigList) DeepCopy() *ClusterConfigList

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

func (*ClusterConfigList) DeepCopyInto

func (in *ClusterConfigList) DeepCopyInto(out *ClusterConfigList)

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

func (*ClusterConfigList) DeepCopyObject

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

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

type ClusterConfigSpec

type ClusterConfigSpec struct {

	// Information about the Control Plane.
	// +optional
	ControlPlane ControlPlaneSpec `json:"controlPlane,omitempty"`

	// Information about the Workload Plane.
	// +optional
	WorkloadPlane WorkloadPlaneSpec `json:"workloadPlane,omitempty"`
}

ClusterConfigSpec defines the desired state of ClusterConfig

func (*ClusterConfigSpec) DeepCopy

func (in *ClusterConfigSpec) DeepCopy() *ClusterConfigSpec

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

func (*ClusterConfigSpec) DeepCopyInto

func (in *ClusterConfigSpec) DeepCopyInto(out *ClusterConfigSpec)

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

type ClusterConfigStatus

type ClusterConfigStatus struct {

	// List of conditions for the ClusterConfig
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// Control Plane Information
	ControlPlane ControlPlaneStatus `json:"controlPlane,omitempty"`
}

ClusterConfigStatus defines the observed state of ClusterConfig

func (*ClusterConfigStatus) DeepCopy

func (in *ClusterConfigStatus) DeepCopy() *ClusterConfigStatus

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

func (*ClusterConfigStatus) DeepCopyInto

func (in *ClusterConfigStatus) DeepCopyInto(out *ClusterConfigStatus)

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

type Condition

type Condition metav1.Condition

Condition contains details for one aspect of the current state of this object

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ControlPlaneIngressSource

type ControlPlaneIngressSource struct {
	ManagedVirtualIP *ManagedVirtualIPSource `json:"managedVirtualIP,omitempty"`
	ExternalIP       *ExternalIPSource       `json:"externalIP,omitempty"`
}

func (*ControlPlaneIngressSource) DeepCopy

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

func (*ControlPlaneIngressSource) DeepCopyInto

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

type ControlPlaneIngressSpec

type ControlPlaneIngressSpec struct {
	ControlPlaneIngressSource `json:",inline"`
}

func (*ControlPlaneIngressSpec) DeepCopy

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

func (*ControlPlaneIngressSpec) DeepCopyInto

func (in *ControlPlaneIngressSpec) DeepCopyInto(out *ControlPlaneIngressSpec)

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

type ControlPlaneIngressStatus

type ControlPlaneIngressStatus struct {
	// The IP address where the Ingress is exposed
	IP IPAddress `json:"ip,omitempty"`
	// The full endpoint URL to reach the Ingress
	Endpoint string `json:"endpoint,omitempty"`
}

func (*ControlPlaneIngressStatus) DeepCopy

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

func (*ControlPlaneIngressStatus) DeepCopyInto

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

type ControlPlaneSpec

type ControlPlaneSpec struct {
	// Information about the Control Plane Ingress
	Ingress ControlPlaneIngressSpec `json:"ingress,omitempty"`
}

func (*ControlPlaneSpec) DeepCopy

func (in *ControlPlaneSpec) DeepCopy() *ControlPlaneSpec

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

func (*ControlPlaneSpec) DeepCopyInto

func (in *ControlPlaneSpec) DeepCopyInto(out *ControlPlaneSpec)

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

type ControlPlaneStatus

type ControlPlaneStatus struct {
	// Information about the Control Plane Ingress
	Ingress ControlPlaneIngressStatus `json:"ingress,omitempty"`
}

func (*ControlPlaneStatus) DeepCopy

func (in *ControlPlaneStatus) DeepCopy() *ControlPlaneStatus

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

func (*ControlPlaneStatus) DeepCopyInto

func (in *ControlPlaneStatus) DeepCopyInto(out *ControlPlaneStatus)

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

type ExternalIPSource

type ExternalIPSource struct {
	// The IP address used to reach the Ingress
	Address IPAddress `json:"address"`
}

func (*ExternalIPSource) DeepCopy

func (in *ExternalIPSource) DeepCopy() *ExternalIPSource

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

func (*ExternalIPSource) DeepCopyInto

func (in *ExternalIPSource) DeepCopyInto(out *ExternalIPSource)

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

type HealthcheckSpec

type HealthcheckSpec struct {
	// Simple HTTP Get check
	HttpGet HttpGetSpec `json:"httpGet,omitempty"`
}

func (*HealthcheckSpec) DeepCopy

func (in *HealthcheckSpec) DeepCopy() *HealthcheckSpec

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

func (*HealthcheckSpec) DeepCopyInto

func (in *HealthcheckSpec) DeepCopyInto(out *HealthcheckSpec)

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

type HttpGetSpec

type HttpGetSpec struct {
	// The IP to do the HTTP request
	// (default to keepalived Pod IP)
	// +optional
	IP IPAddress `json:"host,omitempty"`
	// The scheme to use for the HTTP request
	// (default to HTTPS)
	// +optional
	// +kubebuilder:default="HTTPS"
	// +kubebuilder:validation:Enum={"HTTP", "HTTPS"}
	Scheme string `json:"scheme"`
	// The port to do the HTTP request
	// +optional
	// +kubebuilder:default=443
	Port int `json:"port"`
	// Path for the HTTP request
	// +optional
	Path string `json:"path"`
}

func (*HttpGetSpec) DeepCopy

func (in *HttpGetSpec) DeepCopy() *HttpGetSpec

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

func (*HttpGetSpec) DeepCopyInto

func (in *HttpGetSpec) DeepCopyInto(out *HttpGetSpec)

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

type IPAddress

type IPAddress string

+kubebuilder:validation:Format=ipv4

type ManagedVirtualIPSource

type ManagedVirtualIPSource struct {
	// and will be used to reach the Ingress
	// A Virtual IP address that will be managed by the Operator
	Address IPAddress `json:"address"`
}

func (*ManagedVirtualIPSource) DeepCopy

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

func (*ManagedVirtualIPSource) DeepCopyInto

func (in *ManagedVirtualIPSource) DeepCopyInto(out *ManagedVirtualIPSource)

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

type SpreadConstraintSpec

type SpreadConstraintSpec struct {
	// Topology label to use to spread the Virtual IPs
	TopologyKey string `json:"topologyKey"`
}

func (*SpreadConstraintSpec) DeepCopy

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

func (*SpreadConstraintSpec) DeepCopyInto

func (in *SpreadConstraintSpec) DeepCopyInto(out *SpreadConstraintSpec)

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

type VirtualIPPool

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

	Spec   VirtualIPPoolSpec   `json:"spec,omitempty"`
	Status VirtualIPPoolStatus `json:"status,omitempty"`
}

VirtualIPPool is the Schema for the virtualippools API

func (*VirtualIPPool) DeepCopy

func (in *VirtualIPPool) DeepCopy() *VirtualIPPool

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

func (*VirtualIPPool) DeepCopyInto

func (in *VirtualIPPool) DeepCopyInto(out *VirtualIPPool)

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

func (*VirtualIPPool) DeepCopyObject

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

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

func (*VirtualIPPool) GetCondition

func (v *VirtualIPPool) GetCondition(kind string) *Condition

Get a condition from VirtualIPPool

func (*VirtualIPPool) GetConfigMap

func (v *VirtualIPPool) GetConfigMap() *corev1.ConfigMap

Compute the ConfigMap name for a pool

func (*VirtualIPPool) GetDaemonSet

func (v *VirtualIPPool) GetDaemonSet() *appsv1.DaemonSet

Compute the DaemonSet name for a pool

func (*VirtualIPPool) GetReadyCondition

func (v *VirtualIPPool) GetReadyCondition() *Condition

Get Ready Condition

func (*VirtualIPPool) SetAvailableCondition

func (v *VirtualIPPool) SetAvailableCondition(status metav1.ConditionStatus, reason string, message string)

Set Available Condition

func (*VirtualIPPool) SetCondition

func (v *VirtualIPPool) SetCondition(kind string, status metav1.ConditionStatus, reason string, message string)

Set a condition on VirtualIPPool

func (*VirtualIPPool) SetConfiguredCondition

func (v *VirtualIPPool) SetConfiguredCondition(status metav1.ConditionStatus, reason string, message string)

Set Configured Condition

func (*VirtualIPPool) SetReadyCondition

func (v *VirtualIPPool) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)

Set Ready Condition

type VirtualIPPoolList

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

VirtualIPPoolList contains a list of VirtualIPPool

func (*VirtualIPPoolList) DeepCopy

func (in *VirtualIPPoolList) DeepCopy() *VirtualIPPoolList

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

func (*VirtualIPPoolList) DeepCopyInto

func (in *VirtualIPPoolList) DeepCopyInto(out *VirtualIPPoolList)

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

func (*VirtualIPPoolList) DeepCopyObject

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

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

type VirtualIPPoolSpec

type VirtualIPPoolSpec struct {

	// Node Selector to deploy the Virtual IPs manager
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// Tolerations to deploy the Virtual IPs manager
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

	// Virtual IP addresses to use
	// +kubebuilder:validation:MinItems=1
	Addresses []IPAddress `json:"addresses"`

	// The local health check to run to ensure the Virtual IP can sit on
	// this specific node
	Healthcheck *HealthcheckSpec `json:"healthcheck,omitempty"`
}

VirtualIPPoolSpec defines the desired state of VirtualIPPool

func (*VirtualIPPoolSpec) DeepCopy

func (in *VirtualIPPoolSpec) DeepCopy() *VirtualIPPoolSpec

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

func (*VirtualIPPoolSpec) DeepCopyInto

func (in *VirtualIPPoolSpec) DeepCopyInto(out *VirtualIPPoolSpec)

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

type VirtualIPPoolStatus

type VirtualIPPoolStatus struct {

	// List of conditions for the VirtualIPPool
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

VirtualIPPoolStatus defines the observed state of VirtualIPPool

func (*VirtualIPPoolStatus) DeepCopy

func (in *VirtualIPPoolStatus) DeepCopy() *VirtualIPPoolStatus

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

func (*VirtualIPPoolStatus) DeepCopyInto

func (in *VirtualIPPoolStatus) DeepCopyInto(out *VirtualIPPoolStatus)

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

type WorkloadPlaneSpec

type WorkloadPlaneSpec struct {
	// Information about Virtual IP Pools
	// +optional
	VirtualIPPools map[string]VirtualIPPoolSpec `json:"virtualIPPools,omitempty"`
}

func (*WorkloadPlaneSpec) DeepCopy

func (in *WorkloadPlaneSpec) DeepCopy() *WorkloadPlaneSpec

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

func (*WorkloadPlaneSpec) DeepCopyInto

func (in *WorkloadPlaneSpec) DeepCopyInto(out *WorkloadPlaneSpec)

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