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
- Variables
- type HelmChart
- type HelmChartInfo
- type HelmReleaseInfo
- type UffizziCluster
- type UffizziClusterAPIServer
- type UffizziClusterDistro
- type UffizziClusterIngress
- type UffizziClusterLimitRange
- type UffizziClusterLimitRangeDefault
- type UffizziClusterLimitRangeDefaultRequest
- type UffizziClusterList
- type UffizziClusterRequestsQuota
- type UffizziClusterResourceCount
- type UffizziClusterResourceQuota
- type UffizziClusterResourceQuotaLimits
- type UffizziClusterServicesQuota
- type UffizziClusterSpec
- type UffizziClusterStatus
- type UffizziClusterStorage
- type VClusterIngressSpec
- type VClusterKubeConfig
Constants ¶
const GroupName = "uffizzi.com"
const GroupVersion = "v1alpha1"
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart.
func (*HelmChart) DeepCopyInto ¶
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 ¶
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 ¶
func (in *UffizziClusterAPIServer) DeepCopy() *UffizziClusterAPIServer
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 ¶
func (in *UffizziClusterDistro) DeepCopy() *UffizziClusterDistro
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 ¶
func (in *UffizziClusterIngress) DeepCopy() *UffizziClusterIngress
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 ¶
func (in *UffizziClusterLimitRange) DeepCopy() *UffizziClusterLimitRange
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 ¶
func (in *UffizziClusterLimitRangeDefault) DeepCopy() *UffizziClusterLimitRangeDefault
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterLimitRangeDefault.
func (*UffizziClusterLimitRangeDefault) DeepCopyInto ¶
func (in *UffizziClusterLimitRangeDefault) DeepCopyInto(out *UffizziClusterLimitRangeDefault)
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 ¶
func (in *UffizziClusterLimitRangeDefaultRequest) DeepCopy() *UffizziClusterLimitRangeDefaultRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterLimitRangeDefaultRequest.
func (*UffizziClusterLimitRangeDefaultRequest) DeepCopyInto ¶
func (in *UffizziClusterLimitRangeDefaultRequest) DeepCopyInto(out *UffizziClusterLimitRangeDefaultRequest)
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 ¶
func (in *UffizziClusterRequestsQuota) DeepCopy() *UffizziClusterRequestsQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterRequestsQuota.
func (*UffizziClusterRequestsQuota) DeepCopyInto ¶
func (in *UffizziClusterRequestsQuota) DeepCopyInto(out *UffizziClusterRequestsQuota)
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 ¶
func (in *UffizziClusterResourceCount) DeepCopy() *UffizziClusterResourceCount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterResourceCount.
func (*UffizziClusterResourceCount) DeepCopyInto ¶
func (in *UffizziClusterResourceCount) DeepCopyInto(out *UffizziClusterResourceCount)
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 ¶
func (in *UffizziClusterResourceQuota) DeepCopy() *UffizziClusterResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterResourceQuota.
func (*UffizziClusterResourceQuota) DeepCopyInto ¶
func (in *UffizziClusterResourceQuota) DeepCopyInto(out *UffizziClusterResourceQuota)
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 ¶
func (in *UffizziClusterResourceQuotaLimits) DeepCopy() *UffizziClusterResourceQuotaLimits
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterResourceQuotaLimits.
func (*UffizziClusterResourceQuotaLimits) DeepCopyInto ¶
func (in *UffizziClusterResourceQuotaLimits) DeepCopyInto(out *UffizziClusterResourceQuotaLimits)
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 ¶
func (in *UffizziClusterServicesQuota) DeepCopy() *UffizziClusterServicesQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UffizziClusterServicesQuota.
func (*UffizziClusterServicesQuota) DeepCopyInto ¶
func (in *UffizziClusterServicesQuota) DeepCopyInto(out *UffizziClusterServicesQuota)
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 ¶
func (in *UffizziClusterStatus) DeepCopy() *UffizziClusterStatus
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 ¶
func (in *UffizziClusterStorage) DeepCopy() *UffizziClusterStorage
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.