v1alpha1

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const GroupName = "uffizzi.com"
View Source
const GroupVersion = "v1alpha1"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	SchemaGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

	// SchemeBuilder is used to add go helm to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemaGroupVersion}

	// AddToScheme adds the helm in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type HelmChart

type HelmChart struct {
	Chart   HelmChartInfo   `json:"chart"`
	Values  string          `json:"values,omitempty"`
	Release HelmReleaseInfo `json:"release"`
}

func (*HelmChart) DeepCopy

func (in *HelmChart) DeepCopy() *HelmChart

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

func (*HelmChart) DeepCopyInto

func (in *HelmChart) DeepCopyInto(out *HelmChart)

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

type HelmChartInfo

type HelmChartInfo struct {
	Name    string `json:"name"`
	Repo    string `json:"repo"`
	Version string `json:"version,omitempty"`
}

func (*HelmChartInfo) DeepCopy

func (in *HelmChartInfo) DeepCopy() *HelmChartInfo

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

func (*HelmChartInfo) DeepCopyInto

func (in *HelmChartInfo) DeepCopyInto(out *HelmChartInfo)

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

type HelmReleaseInfo

type HelmReleaseInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*HelmReleaseInfo) DeepCopy

func (in *HelmReleaseInfo) DeepCopy() *HelmReleaseInfo

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

func (*HelmReleaseInfo) DeepCopyInto

func (in *HelmReleaseInfo) DeepCopyInto(out *HelmReleaseInfo)

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

type UffizziCluster

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

	Spec   UffizziClusterSpec   `json:"spec,omitempty"`
	Status UffizziClusterStatus `json:"status,omitempty"`
}

UffizziCluster is the Schema for the UffizziClusters API

func (*UffizziCluster) DeepCopy

func (in *UffizziCluster) DeepCopy() *UffizziCluster

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

func (*UffizziCluster) DeepCopyInto

func (in *UffizziCluster) DeepCopyInto(out *UffizziCluster)

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

func (*UffizziCluster) DeepCopyObject

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

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

type UffizziClusterAPIServer

type UffizziClusterAPIServer struct {
	Image string `json:"image,omitempty"`
}

UffizziClusterAPIServer defines the API server capabilities of the cluster

func (*UffizziClusterAPIServer) DeepCopy

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

func (*UffizziClusterAPIServer) DeepCopyInto

func (in *UffizziClusterAPIServer) DeepCopyInto(out *UffizziClusterAPIServer)

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

type UffizziClusterDistro

type UffizziClusterDistro struct {
	//+kubebuilder:default:="k3s"
	Type string `json:"type,omitempty"`
	//+kubebuilder:default:="v1.27.3-k3s1"
	Version string `json:"version,omitempty"`
}

func (*UffizziClusterDistro) DeepCopy

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

func (*UffizziClusterDistro) DeepCopyInto

func (in *UffizziClusterDistro) DeepCopyInto(out *UffizziClusterDistro)

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

type UffizziClusterIngress

type UffizziClusterIngress struct {
	Host  string `json:"host,omitempty"`
	Class string `json:"class,omitempty"`
}

UffiClusterIngress defines the ingress capabilities of the cluster, the basic host can be setup for all

func (*UffizziClusterIngress) DeepCopy

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

func (*UffizziClusterIngress) DeepCopyInto

func (in *UffizziClusterIngress) DeepCopyInto(out *UffizziClusterIngress)

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

type UffizziClusterLimitRange

type UffizziClusterLimitRange struct {
	//+kubebuilder:default:=true
	Enabled bool `json:"enabled"`
	//+kubebuilder:default:={}
	Default UffizziClusterLimitRangeDefault `json:"default,omitempty"`
	//+kubebuilder:default:={}
	DefaultRequest UffizziClusterLimitRangeDefaultRequest `json:"defaultRequest,omitempty"`
}

func (*UffizziClusterLimitRange) DeepCopy

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

func (*UffizziClusterLimitRange) DeepCopyInto

func (in *UffizziClusterLimitRange) DeepCopyInto(out *UffizziClusterLimitRange)

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

type UffizziClusterLimitRangeDefault

type UffizziClusterLimitRangeDefault struct {
	//+kubebuilder:default:="0.5"
	CPU string `json:"cpu,omitempty"`
	//+kubebuilder:default:="1Gi"
	Memory string `json:"memory,omitempty"`
	//+kubebuilder:default:="8Gi"
	EphemeralStorage string `json:"ephemeralStorage,omitempty"`
}

func (*UffizziClusterLimitRangeDefault) DeepCopy

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

func (*UffizziClusterLimitRangeDefault) DeepCopyInto

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

type UffizziClusterLimitRangeDefaultRequest

type UffizziClusterLimitRangeDefaultRequest struct {
	//+kubebuilder:default:="0.1"
	CPU string `json:"cpu,omitempty"`
	//+kubebuilder:default:="128Mi"
	Memory string `json:"memory,omitempty"`
	//+kubebuilder:default:="1Gi"
	EphemeralStorage string `json:"ephemeralStorage,omitempty"`
}

func (*UffizziClusterLimitRangeDefaultRequest) DeepCopy

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

func (*UffizziClusterLimitRangeDefaultRequest) DeepCopyInto

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

type UffizziClusterList

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

UffizziClusterList contains a list of UffizziCluster

func (*UffizziClusterList) DeepCopy

func (in *UffizziClusterList) DeepCopy() *UffizziClusterList

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

func (*UffizziClusterList) DeepCopyInto

func (in *UffizziClusterList) DeepCopyInto(out *UffizziClusterList)

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

func (*UffizziClusterList) DeepCopyObject

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

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

type UffizziClusterRequestsQuota

type UffizziClusterRequestsQuota struct {
	//+kubebuilder:default:="0.5"
	CPU string `json:"cpu,omitempty"`
	//+kubebuilder:default:="1Gi"
	Memory string `json:"memory,omitempty"`
	//+kubebuilder:default:="5Gi"
	EphemeralStorage string `json:"ephemeralStorage,omitempty"`
	//+kubebuilder:default:="10Gi"
	Storage string `json:"storage,omitempty"`
}

func (*UffizziClusterRequestsQuota) DeepCopy

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

func (*UffizziClusterRequestsQuota) DeepCopyInto

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

type UffizziClusterResourceCount

type UffizziClusterResourceCount struct {
	//+kubebuilder:default:=20
	Pods int `json:"pods,omitempty"`
	//+kubebuilder:default:=10
	Services int `json:"services,omitempty"`
	//+kubebuilder:default:=20
	ConfigMaps int `json:"configMaps,omitempty"`
	//+kubebuilder:default:=20
	Secrets int `json:"secrets,omitempty"`
	//+kubebuilder:default:=10
	PersistentVolumeClaims int `json:"persistentVolumeClaims,omitempty"`
	//+kubebuilder:default:=10
	Endpoints int `json:"endpoints,omitempty"`
}

func (*UffizziClusterResourceCount) DeepCopy

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

func (*UffizziClusterResourceCount) DeepCopyInto

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

type UffizziClusterResourceQuota

type UffizziClusterResourceQuota struct {
	//+kubebuilder:default:=true
	Enabled bool `json:"enabled"`
	//+kubebuilder:default:={}
	Requests UffizziClusterRequestsQuota `json:"requests,omitempty"`
	//+kubebuilder:default:={}
	Limits UffizziClusterResourceQuotaLimits `json:"limits,omitempty"`
	//+kubebuilder:default:={}
	Services UffizziClusterServicesQuota `json:"services,omitempty"`
	//+kubebuilder:default:={}
	Count UffizziClusterResourceCount `json:"count,omitempty"`
}

UffizziClusterResourceQuota defines the resource quota which defines the quota of resources a namespace has access to

func (*UffizziClusterResourceQuota) DeepCopy

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

func (*UffizziClusterResourceQuota) DeepCopyInto

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

type UffizziClusterResourceQuotaLimits

type UffizziClusterResourceQuotaLimits struct {
	//+kubebuilder:default:="0.5"
	CPU string `json:"cpu,omitempty"`
	//+kubebuilder:default:="8Gi"
	Memory string `json:"memory,omitempty"`
	//+kubebuilder:default:="5Gi"
	EphemeralStorage string `json:"ephemeralStorage,omitempty"`
}

func (*UffizziClusterResourceQuotaLimits) DeepCopy

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

func (*UffizziClusterResourceQuotaLimits) DeepCopyInto

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

type UffizziClusterServicesQuota

type UffizziClusterServicesQuota struct {
	//+kubebuilder:default:=0
	NodePorts int `json:"nodePorts,omitempty"`
	//+kubebuilder:default:=3
	LoadBalancers int `json:"loadBalancers,omitempty"`
}

func (*UffizziClusterServicesQuota) DeepCopy

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

func (*UffizziClusterServicesQuota) DeepCopyInto

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

type UffizziClusterSpec

type UffizziClusterSpec struct {
	//+kubebuilder:default:="k3s"
	//+kubebuilder:validation:Enum=k3s;k8s
	Distro               string                       `json:"distro,omitempty"`
	NodeSelectorTemplate string                       `json:"nodeSelectorTemplate,omitempty"`
	NodeSelector         map[string]string            `json:"nodeSelector,omitempty"`
	Toleration           []v1.Toleration              `json:"tolerations,omitempty"`
	APIServer            UffizziClusterAPIServer      `json:"apiServer,omitempty"`
	Ingress              UffizziClusterIngress        `json:"ingress,omitempty"`
	Helm                 []HelmChart                  `json:"helm,omitempty"`
	Manifests            *string                      `json:"manifests,omitempty"`
	ResourceQuota        *UffizziClusterResourceQuota `json:"resourceQuota,omitempty"`
	LimitRange           *UffizziClusterLimitRange    `json:"limitRange,omitempty"`
	Sleep                bool                         `json:"sleep,omitempty"`
	Storage              *UffizziClusterStorage       `json:"storage,omitempty"`
	//+kubebuilder:default:="sqlite"
	//+kubebuilder:validation:Enum=etcd;sqlite
	ExternalDatastore string `json:"externalDatastore,omitempty"`
}

UffizziClusterSpec defines the desired state of UffizziCluster

func (*UffizziClusterSpec) DeepCopy

func (in *UffizziClusterSpec) DeepCopy() *UffizziClusterSpec

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

func (*UffizziClusterSpec) DeepCopyInto

func (in *UffizziClusterSpec) DeepCopyInto(out *UffizziClusterSpec)

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

type UffizziClusterStatus

type UffizziClusterStatus struct {
	Conditions                 []metav1.Condition `json:"conditions,omitempty"`
	HelmReleaseRef             *string            `json:"helmReleaseRef,omitempty"`
	KubeConfig                 VClusterKubeConfig `json:"kubeConfig,omitempty"`
	Host                       *string            `json:"host,omitempty"`
	LastAppliedConfiguration   *string            `json:"lastAppliedConfiguration,omitempty"`
	LastAppliedHelmReleaseSpec *string            `json:"lastAppliedHelmReleaseSpec,omitempty"`
	LastAwakeTime              metav1.Time        `json:"lastAwakeTime,omitempty"`
	Tolerations                []v1.Toleration    `json:"tolerations,omitempty"`
	NodeSelector               map[string]string  `json:"nodeSelector,omitempty"`
}

UffizziClusterStatus defines the observed state of UffizziCluster

func (*UffizziClusterStatus) DeepCopy

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

func (*UffizziClusterStatus) DeepCopyInto

func (in *UffizziClusterStatus) DeepCopyInto(out *UffizziClusterStatus)

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

type UffizziClusterStorage

type UffizziClusterStorage struct {
	//+kubebuilder:default:=true
	Persistence bool `json:"persistence,omitempty"`
	//+kubebuilder:default:="5Gi"
	Size string `json:"size,omitempty"`
}

func (*UffizziClusterStorage) DeepCopy

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

func (*UffizziClusterStorage) DeepCopyInto

func (in *UffizziClusterStorage) DeepCopyInto(out *UffizziClusterStorage)

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

type VClusterIngressSpec

type VClusterIngressSpec struct {
	IngressAnnotations    map[string]string `json:"ingressAnnotations,omitempty"`
	CertManagerTLSEnabled bool              `json:"certManagerTLSEnabled,omitempty"`
}

func (*VClusterIngressSpec) DeepCopy

func (in *VClusterIngressSpec) DeepCopy() *VClusterIngressSpec

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

func (*VClusterIngressSpec) DeepCopyInto

func (in *VClusterIngressSpec) DeepCopyInto(out *VClusterIngressSpec)

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

type VClusterKubeConfig

type VClusterKubeConfig struct {
	SecretRef *meta.SecretKeyReference `json:"secretRef,omitempty"`
}

VClusterKubeConfig is the KubeConfig SecretReference of the related VCluster

func (*VClusterKubeConfig) DeepCopy

func (in *VClusterKubeConfig) DeepCopy() *VClusterKubeConfig

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

func (*VClusterKubeConfig) DeepCopyInto

func (in *VClusterKubeConfig) DeepCopyInto(out *VClusterKubeConfig)

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