Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=metalk8s.scality.com
Index ¶
- Variables
- type ClusterConfig
- func (in *ClusterConfig) DeepCopy() *ClusterConfig
- func (in *ClusterConfig) DeepCopyInto(out *ClusterConfig)
- func (in *ClusterConfig) DeepCopyObject() runtime.Object
- func (v *ClusterConfig) GetCondition(kind string) *Condition
- func (v *ClusterConfig) SetCPIngressConfiguredCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetCPIngressVIPConfiguredCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetCPIngressVIPReadyCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetCondition(kind string, status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetWPVIPConfiguredCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *ClusterConfig) SetWPVIPReadyCondition(status metav1.ConditionStatus, reason string, message string)
- type ClusterConfigList
- type ClusterConfigSpec
- type ClusterConfigStatus
- type Condition
- type ControlPlaneIngressSource
- type ControlPlaneIngressSpec
- type ControlPlaneIngressStatus
- type ControlPlaneSpec
- type ControlPlaneStatus
- type ExternalIPSource
- type HealthcheckSpec
- type HttpGetSpec
- type IPAddress
- type ManagedVirtualIPSource
- type SpreadConstraintSpec
- type VirtualIPPool
- func (in *VirtualIPPool) DeepCopy() *VirtualIPPool
- func (in *VirtualIPPool) DeepCopyInto(out *VirtualIPPool)
- func (in *VirtualIPPool) DeepCopyObject() runtime.Object
- func (v *VirtualIPPool) GetCondition(kind string) *Condition
- func (v *VirtualIPPool) GetConfigMap() *corev1.ConfigMap
- func (v *VirtualIPPool) GetDaemonSet() *appsv1.DaemonSet
- func (v *VirtualIPPool) GetReadyCondition() *Condition
- func (v *VirtualIPPool) SetAvailableCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *VirtualIPPool) SetCondition(kind string, status metav1.ConditionStatus, reason string, message string)
- func (v *VirtualIPPool) SetConfiguredCondition(status metav1.ConditionStatus, reason string, message string)
- func (v *VirtualIPPool) SetReadyCondition(status metav1.ConditionStatus, reason string, message string)
- type VirtualIPPoolList
- type VirtualIPPoolSpec
- type VirtualIPPoolStatus
- type WorkloadPlaneSpec
Constants ¶
This section is empty.
Variables ¶
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 ¶
Condition contains details for one aspect of the current state of this object
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
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 ¶
func (in *ControlPlaneIngressSource) DeepCopy() *ControlPlaneIngressSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneIngressSource.
func (*ControlPlaneIngressSource) DeepCopyInto ¶
func (in *ControlPlaneIngressSource) DeepCopyInto(out *ControlPlaneIngressSource)
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 ¶
func (in *ControlPlaneIngressSpec) DeepCopy() *ControlPlaneIngressSpec
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 ¶
func (in *ControlPlaneIngressStatus) DeepCopy() *ControlPlaneIngressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlPlaneIngressStatus.
func (*ControlPlaneIngressStatus) DeepCopyInto ¶
func (in *ControlPlaneIngressStatus) DeepCopyInto(out *ControlPlaneIngressStatus)
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 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 ¶
func (in *ManagedVirtualIPSource) DeepCopy() *ManagedVirtualIPSource
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 ¶
func (in *SpreadConstraintSpec) DeepCopy() *SpreadConstraintSpec
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.