Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group +kubebuilder:object:generate=true +groupName=cluster.oneinfra.ereslibre.es
Index ¶
- Constants
- Variables
- type CertificateAuthorities
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (cluster *Cluster) Default()
- func (cluster *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (cluster *Cluster) ValidateCreate() error
- func (cluster *Cluster) ValidateDelete() error
- func (cluster *Cluster) ValidateUpdate(old runtime.Object) error
- type ClusterList
- type ClusterNetworking
- type ClusterSpec
- type ClusterStatus
- type Component
- func (in *Component) DeepCopy() *Component
- func (in *Component) DeepCopyInto(out *Component)
- func (in *Component) DeepCopyObject() runtime.Object
- func (component *Component) Default()
- func (component *Component) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (component *Component) ValidateCreate() error
- func (component *Component) ValidateDelete() error
- func (component *Component) ValidateUpdate(old runtime.Object) error
- type ComponentHostPortAllocation
- type ComponentList
- type ComponentSpec
- type ComponentStatus
- type EtcdServer
- type KubeAPIServer
- type Role
- type VPN
- type VPNPeer
Constants ¶
const ( // ReconcileStarted represents a condition type signaling whether a // reconcile has been started ReconcileStarted commonv1alpha1.ConditionType = "ReconcileStarted" // ReconcileSucceeded represents a condition type signaling that a // reconcile has succeeded ReconcileSucceeded commonv1alpha1.ConditionType = "ReconcileSucceeded" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cluster.oneinfra.ereslibre.es", Version: "v1alpha1"} // SchemeGroupVersion is group version used to register these objects (client-gen compatibility) SchemeGroupVersion = GroupVersion // 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 CertificateAuthorities ¶
type CertificateAuthorities struct { // +optional APIServerClient *commonv1alpha1.Certificate `json:"apiServerClient,omitempty"` // +optional CertificateSigner *commonv1alpha1.Certificate `json:"certificateSigner,omitempty"` // +optional Kubelet *commonv1alpha1.Certificate `json:"kubelet,omitempty"` // +optional KubeletClient *commonv1alpha1.Certificate `json:"kubeletClient,omitempty"` // +optional EtcdClient *commonv1alpha1.Certificate `json:"etcdClient,omitempty"` // +optional EtcdPeer *commonv1alpha1.Certificate `json:"etcdPeer,omitempty"` }
CertificateAuthorities represents a set of Certificate Authorities
func (*CertificateAuthorities) DeepCopy ¶
func (in *CertificateAuthorities) DeepCopy() *CertificateAuthorities
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateAuthorities.
func (*CertificateAuthorities) DeepCopyInto ¶
func (in *CertificateAuthorities) DeepCopyInto(out *CertificateAuthorities)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterSpec `json:"spec,omitempty"` Status ClusterStatus `json:"status,omitempty"` }
Cluster is the Schema for the clusters API
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cluster) Default ¶
func (cluster *Cluster) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Cluster) SetupWebhookWithManager ¶
SetupWebhookWithManager registers this web hook on the given manager instance
func (*Cluster) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Cluster) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cluster `json:"items"` }
ClusterList contains a list of Cluster
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNetworking ¶
type ClusterNetworking struct { ClusterCIDR string `json:"clusterCIDR,omitempty"` ServiceCIDR string `json:"serviceCIDR,omitempty"` NodeCIDRMaskSize int `json:"nodeCIDRMaskSize,omitempty"` NodeCIDRMaskSizeIPv4 int `json:"nodeCIDRMaskSizeIPv4,omitempty"` NodeCIDRMaskSizeIPv6 int `json:"nodeCIDRMaskSizeIPv6,omitempty"` }
ClusterNetworking represents the cluster networking settings
func (*ClusterNetworking) DeepCopy ¶
func (in *ClusterNetworking) DeepCopy() *ClusterNetworking
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworking.
func (*ClusterNetworking) DeepCopyInto ¶
func (in *ClusterNetworking) DeepCopyInto(out *ClusterNetworking)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct { // +optional KubernetesVersion string `json:"kubernetesVersion,omitempty"` // The number of control plane replicas this cluster will // manage. One control plane replica if not provided. // // +optional ControlPlaneReplicas int `json:"controlPlaneReplicas,omitempty"` // +optional CertificateAuthorities *CertificateAuthorities `json:"certificateAuthorities,omitempty"` // +optional EtcdServer *EtcdServer `json:"etcdServer,omitempty"` // +optional APIServer *KubeAPIServer `json:"apiServer,omitempty"` // +optional VPN *VPN `json:"vpn,omitempty"` // +optional JoinKey *commonv1alpha1.KeyPair `json:"joinKey,omitempty"` // +optional JoinTokens []string `json:"joinTokens,omitempty"` // +optional Networking *ClusterNetworking `json:"networking,omitempty"` }
ClusterSpec defines the desired state of Cluster
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct { ClientCertificates map[string]commonv1alpha1.Certificate `json:"clientCertificates,omitempty"` StorageClientEndpoints map[string]string `json:"storageClientEndpoints,omitempty"` StoragePeerEndpoints map[string]string `json:"storagePeerEndpoints,omitempty"` VPNPeers []VPNPeer `json:"vpnPeers,omitempty"` APIServerEndpoint string `json:"apiServerEndpoint,omitempty"` VPNServerEndpoint string `json:"vpnServerEndpoint,omitempty"` JoinTokens []string `json:"joinTokens,omitempty"` Conditions commonv1alpha1.ConditionList `json:"conditions,omitempty"` }
ClusterStatus defines the observed state of Cluster
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Component ¶
type Component struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ComponentSpec `json:"spec,omitempty"` Status ComponentStatus `json:"status,omitempty"` }
Component is the Schema for the components API
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Component) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Component) Default ¶
func (component *Component) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Component) SetupWebhookWithManager ¶
SetupWebhookWithManager registers this web hook on the given manager instance
func (*Component) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Component) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ComponentHostPortAllocation ¶
type ComponentHostPortAllocation struct { Name string `json:"name,omitempty"` Port int `json:"port,omitempty"` }
ComponentHostPortAllocation represents a port allocation in a component
func (*ComponentHostPortAllocation) DeepCopy ¶
func (in *ComponentHostPortAllocation) DeepCopy() *ComponentHostPortAllocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentHostPortAllocation.
func (*ComponentHostPortAllocation) DeepCopyInto ¶
func (in *ComponentHostPortAllocation) DeepCopyInto(out *ComponentHostPortAllocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentList ¶
type ComponentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Component `json:"items"` }
ComponentList contains a list of Component
func (*ComponentList) DeepCopy ¶
func (in *ComponentList) DeepCopy() *ComponentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentList.
func (*ComponentList) DeepCopyInto ¶
func (in *ComponentList) DeepCopyInto(out *ComponentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentList) DeepCopyObject ¶
func (in *ComponentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentSpec ¶
type ComponentSpec struct { // +optional Hypervisor string `json:"hypervisor,omitempty"` Cluster string `json:"cluster,omitempty"` Role Role `json:"role,omitempty"` }
ComponentSpec defines the desired state of Component
func (*ComponentSpec) DeepCopy ¶
func (in *ComponentSpec) DeepCopy() *ComponentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentSpec.
func (*ComponentSpec) DeepCopyInto ¶
func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentStatus ¶
type ComponentStatus struct { AllocatedHostPorts []ComponentHostPortAllocation `json:"allocatedHostPorts,omitempty"` ClientCertificates map[string]commonv1alpha1.Certificate `json:"clientCertificates,omitempty"` ServerCertificates map[string]commonv1alpha1.Certificate `json:"serverCertificates,omitempty"` InputEndpoints map[string]string `json:"inputEndpoints,omitempty"` OutputEndpoints map[string]string `json:"outputEndpoints,omitempty"` Conditions commonv1alpha1.ConditionList `json:"conditions,omitempty"` }
ComponentStatus defines the observed state of Component
func (*ComponentStatus) DeepCopy ¶
func (in *ComponentStatus) DeepCopy() *ComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
func (*ComponentStatus) DeepCopyInto ¶
func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EtcdServer ¶
type EtcdServer struct { // +optional CA *commonv1alpha1.Certificate `json:"ca,omitempty"` }
EtcdServer represents an etcd server
func (*EtcdServer) DeepCopy ¶
func (in *EtcdServer) DeepCopy() *EtcdServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdServer.
func (*EtcdServer) DeepCopyInto ¶
func (in *EtcdServer) DeepCopyInto(out *EtcdServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeAPIServer ¶
type KubeAPIServer struct { // +optional CA *commonv1alpha1.Certificate `json:"ca,omitempty"` // +optional ServiceAccount *commonv1alpha1.KeyPair `json:"serviceAccount,omitempty"` // +optional ExtraSANs []string `json:"extraSANs,omitempty"` }
KubeAPIServer represents a kube apiserver
func (*KubeAPIServer) DeepCopy ¶
func (in *KubeAPIServer) DeepCopy() *KubeAPIServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIServer.
func (*KubeAPIServer) DeepCopyInto ¶
func (in *KubeAPIServer) DeepCopyInto(out *KubeAPIServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VPN ¶
type VPN struct { // Whether a VPN should be set for this cluster. Disabled by default. // // +optional Enabled bool `json:"enabled"` // The VPN ingress private key. Auto-generated if the VPN is enabled // and was not provided. // // +optional PrivateKey *string `json:"privateKey,omitempty"` // The VPN ingress public key. Auto-generated if the VPN is enabled // and was not provided. // // +optional PublicKey *string `json:"publicKey,omitempty"` // The VPN CIDR for this cluster. 10.0.0.0/16 by default. // // +optional CIDR *string `json:"CIDR,omitempty"` }
VPN defines the VPN configuration for this cluster
func (*VPN) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPN.
func (*VPN) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VPNPeer ¶
type VPNPeer struct { Name string `json:"name,omitempty"` Address string `json:"address,omitempty"` PrivateKey string `json:"privateKey,omitempty"` PublicKey string `json:"publicKey,omitempty"` }
VPNPeer represents a VPN peer
func (*VPNPeer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPNPeer.
func (*VPNPeer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.