v1alpha1

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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

View Source
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

View Source
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

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

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (cluster *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers this web hook on the given manager instance

func (*Cluster) ValidateCreate

func (cluster *Cluster) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateDelete

func (cluster *Cluster) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Cluster) ValidateUpdate

func (cluster *Cluster) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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

func (in *Component) DeepCopy() *Component

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

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

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

func (*Component) DeepCopyObject

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

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

func (component *Component) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager registers this web hook on the given manager instance

func (*Component) ValidateCreate

func (component *Component) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Component) ValidateDelete

func (component *Component) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Component) ValidateUpdate

func (component *Component) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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

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

func (*ComponentHostPortAllocation) DeepCopyInto

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 Role

type Role string

Role defines the role of this component

const (
	// ControlPlaneRole is the role used for a Control Plane instance
	ControlPlaneRole Role = "control-plane"

	// ControlPlaneIngressRole is the role used for Control Plane ingress
	ControlPlaneIngressRole Role = "control-plane-ingress"
)

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

func (in *VPN) DeepCopy() *VPN

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

func (*VPN) DeepCopyInto

func (in *VPN) DeepCopyInto(out *VPN)

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

func (in *VPNPeer) DeepCopy() *VPNPeer

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

func (*VPNPeer) DeepCopyInto

func (in *VPNPeer) DeepCopyInto(out *VPNPeer)

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