Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the v1alpha2 API group +kubebuilder:object:generate=true +groupName=upm.syntropycloud.io
Index ¶
- Constants
- Variables
- func GetPersistentVolumeName(unit *Unit, volume string) string
- func PersistentVolumeClaimName(unit *Unit, volume string) string
- func UnitsetHeadlessSvcName(unit *Unit) string
- type CAInfo
- type CertificateProfile
- type CertificateSecretSpec
- type ConfigSyncStatus
- type EmptyDirSpec
- type ExternalServiceSpec
- type ExternalServiceStatus
- type ExtraVolumeInfo
- type FailedPodRecoveryPolicy
- type ImageSyncStatus
- type NodeAffinityPresetSpec
- type PodMonitorEndpoint
- type PodMonitorInfo
- type PodMonitorRelabelConfig
- type PrivateKeyInfo
- type Project
- type ProjectList
- type ProjectSpec
- type ProjectStatus
- type PvcCapacity
- type PvcInfo
- type PvcSyncStatus
- type ResourceSyncStatus
- type RollingUpdateSpec
- type SecretInfo
- type StorageSpec
- type Unit
- type UnitList
- type UnitPhase
- type UnitPodTemplateSpec
- type UnitServiceSpec
- type UnitServiceStatus
- type UnitSet
- func (u *UnitSet) ConfigTemplateName() string
- func (u *UnitSet) ConfigValueName(unitName string) string
- func (in *UnitSet) DeepCopy() *UnitSet
- func (in *UnitSet) DeepCopyInto(out *UnitSet)
- func (in *UnitSet) DeepCopyObject() runtime.Object
- func (u *UnitSet) ExternalServiceName() string
- func (u *UnitSet) HeadlessServiceName() string
- func (u *UnitSet) PodTemplateName() string
- func (u *UnitSet) TemplateConfigTemplateName() string
- func (u *UnitSet) TemplateConfigValueName() string
- func (u *UnitSet) TemplatePodTemplateName() string
- func (u *UnitSet) UnitNames() ([]string, map[string]string)
- type UnitSetList
- type UnitSetSpec
- type UnitSetStatus
- type UnitSpec
- type UnitStatus
- type UnitVolumeClaimTemplate
- type UpdateStrategySpec
Constants ¶
const ( UnitsetName = "unit-operator/unitset.name" UnitName = "unit-operator/unit.name" UnitSn = "unit-operator/unit.sn" NoneSetFlag = "noneSet" AnnotationMaintenance = "unit-operator/maintenance" AnnotationMainContainerName = "kubectl.kubernetes.io/default-container" AnnotationMainContainerVersion = "kubectl.kubernetes.io/default-container-version" AnnotationForceDelete = "unit-operator/force-delete" // AnnotationUnitsetNodeNameMap stores a JSON object mapping unit name -> node name (or "noneSet") // Example: {"mysql-cluster-0":"node-a","mysql-cluster-1":"noneSet"} AnnotationUnitsetNodeNameMap = "unit-operator/unit.node-name.map" // AnnotationUnitServiceType is the type of the unit service // Example: "ClusterIP" AnnotationUnitServiceType = "unit-operator/unit-service.type" AnnotationExternalServiceType = "unit-operator/external-service.type" AnnotationConfigTemplateVersion = "unit-operator/config-template.version" AnnotationConfigValueVersion = "unit-operator/config-value.version" // AnnotationUnitServiceNodeportMapPrefix // AnnotationUnitServiceNodeportMapSuffix // annotation real name: unit-operator.unit-service.<port name>.nodeport.map // Example: unit-operator.unit-service.http.nodeport.map // value is a JSON object mapping unit name -> nodePort // Example: {"mysql-cluster-0":30468,"mysql-cluster-1":30469} // if the annotation is not empty, when recreate the unit service, the nodePort will be filled from the annotation AnnotationUnitServiceNodeportMapPrefix = "unit-operator/unit-service." AnnotationUnitServiceNodeportMapSuffix = ".nodeport.map" AnnotationUnitServiceLoadBalancerIPMapSuffix = "unit-operator/unit-service.loadbalancer-ip.map" AnnotationExtraVolumePrefix = "unit-operator/extraVolume.volume." AnnotationStoragePrefix = "unit-operator/storage.volume." AnnotationCertificatePrefix = "unit-operator/certificate.volume." AnnotationAesSecretKey = "unit-operator/secret.aes-secret-key" LabelProjectOwner = "unit-operator/owner" LabelNamespace = "unit-operator/namespace" LabelUnitsCount = "unit-operator/unitset.units.count" FinalizerUnitDelete = "unit-operator/unit-delete" FinalizerConfigMapDelete = "unit-operator/configmap-delete" FinalizerPodDelete = "unit-operator/pod-delete" FinalizerPvcDelete = "unit-operator/pvc-delete" FinalizerProtect = "unit-operator/protect" CertmanagerIssuerSuffix = "certmanager-issuer" CertmanagerCertificateSuffix = "certmanager-ca" CertmanagerSecretNameSuffix = "secret" MonitorPodMonitorCrdName = "podmonitors.monitoring.coreos.com" MonitorPodMonitorNameSuffix = "-exporter-podmon" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "upm.syntropycloud.io", Version: "v1alpha2"} // 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 ¶
func GetPersistentVolumeName ¶
func UnitsetHeadlessSvcName ¶
Types ¶
type CAInfo ¶ added in v1.1.1
type CAInfo struct {
// Enabled indicates whether the CA is enabled.
// +optional
Enabled bool `json:"enabled,omitempty"`
// CommonName is the common name for the CA certificate.
// +kubebuilder:validation:MinLength=1
//+optional
CommonName string `json:"commonName,omitempty"`
// SecretName is the name of the Kubernetes secret storing the CA.
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
// +optional
SecretName string `json:"secretName,omitempty"`
// Duration is the validity period of the CA certificate.
// +kubebuilder:validation:Pattern=`^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$`
// +optional
Duration string `json:"duration,omitempty"`
// RenewBefore is the time before expiration when the certificate should be renewed.
// +kubebuilder:validation:Pattern=`^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$`
// +optional
RenewBefore string `json:"renewBefore,omitempty"`
// PrivateKey contains information about the CA's private key.
// +optional
PrivateKey PrivateKeyInfo `json:"privateKey,omitempty"`
}
CAInfo contains information about the Certificate Authority configuration.
func (*CAInfo) DeepCopy ¶ added in v1.1.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CAInfo.
func (*CAInfo) DeepCopyInto ¶ added in v1.1.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateProfile ¶
type CertificateProfile struct {
// Organizations List of organization names
// +kubebuilder:validation:Items={MinLength=1}
// +optional
Organizations []string `json:"organizations,omitempty"`
// RootSecret Root secret name
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
// +optional
RootSecret string `json:"rootSecret,omitempty"`
}
func (*CertificateProfile) DeepCopy ¶
func (in *CertificateProfile) DeepCopy() *CertificateProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateProfile.
func (*CertificateProfile) DeepCopyInto ¶
func (in *CertificateProfile) DeepCopyInto(out *CertificateProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateSecretSpec ¶
type CertificateSecretSpec struct {
// Organization name for the certificate
// +optional
Organization string `json:"organization,omitempty"`
// Name of the certificate secret
// +optional
Name string `json:"name,omitempty"`
}
CertificateSecretSpec defines the configuration for certificate secrets.
func (*CertificateSecretSpec) DeepCopy ¶
func (in *CertificateSecretSpec) DeepCopy() *CertificateSecretSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSecretSpec.
func (*CertificateSecretSpec) DeepCopyInto ¶
func (in *CertificateSecretSpec) DeepCopyInto(out *CertificateSecretSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigSyncStatus ¶
type ConfigSyncStatus struct {
// LastTransitionTime the last transition time
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// Status the status of the config sync
// +optional
Status string `json:"status,omitempty"`
}
func (*ConfigSyncStatus) DeepCopy ¶
func (in *ConfigSyncStatus) DeepCopy() *ConfigSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSyncStatus.
func (*ConfigSyncStatus) DeepCopyInto ¶
func (in *ConfigSyncStatus) DeepCopyInto(out *ConfigSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EmptyDirSpec ¶
type EmptyDirSpec struct {
// Name of the storage
// +kubebuilder:validation:MinLength=1
// +optional
Name string `json:"name,omitempty"`
// Size of the storage
// +kubebuilder:validation:Pattern=`^([0-9]+)(\.[0-9]+)?(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)?$`
// +optional
Size string `json:"size,omitempty"`
// MountPath Mount path
// +kubebuilder:validation:Pattern=`^/.*`
// +optional
MountPath string `json:"mountPath,omitempty"`
}
func (*EmptyDirSpec) DeepCopy ¶
func (in *EmptyDirSpec) DeepCopy() *EmptyDirSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmptyDirSpec.
func (*EmptyDirSpec) DeepCopyInto ¶
func (in *EmptyDirSpec) DeepCopyInto(out *EmptyDirSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalServiceSpec ¶
type ExternalServiceSpec struct {
// Type of the external service (e.g., NodePort)
// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer;ExternalName
// +optional
Type string `json:"type,omitempty"`
}
ExternalServiceSpec defines the configuration for external services.
func (*ExternalServiceSpec) DeepCopy ¶
func (in *ExternalServiceSpec) DeepCopy() *ExternalServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceSpec.
func (*ExternalServiceSpec) DeepCopyInto ¶
func (in *ExternalServiceSpec) DeepCopyInto(out *ExternalServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalServiceStatus ¶ added in v1.1.0
type ExternalServiceStatus struct {
// Name the name of unitset external service
// +optional
Name string `json:"name,omitempty"`
}
func (*ExternalServiceStatus) DeepCopy ¶ added in v1.1.0
func (in *ExternalServiceStatus) DeepCopy() *ExternalServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceStatus.
func (*ExternalServiceStatus) DeepCopyInto ¶ added in v1.1.0
func (in *ExternalServiceStatus) DeepCopyInto(out *ExternalServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExtraVolumeInfo ¶ added in v1.1.1
type ExtraVolumeInfo struct {
// Volume defines the configuration for volume
// +optional
Volume corev1.Volume `json:"volume,omitempty"`
// VolumeMountPath Volume mount path
// +kubebuilder:validation:Pattern=`^/.*`
// +optional
VolumeMountPath string `json:"volumeMountPath,omitempty"`
}
func (*ExtraVolumeInfo) DeepCopy ¶ added in v1.1.1
func (in *ExtraVolumeInfo) DeepCopy() *ExtraVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraVolumeInfo.
func (*ExtraVolumeInfo) DeepCopyInto ¶ added in v1.1.1
func (in *ExtraVolumeInfo) DeepCopyInto(out *ExtraVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FailedPodRecoveryPolicy ¶ added in v1.1.1
type FailedPodRecoveryPolicy struct {
// Enabled indicates whether failed pod recovery is enabled
// +optional
Enabled bool `json:"enabled"`
// ReconcileThreshold is the threshold of failed pod recovery
// +optional
ReconcileThreshold int `json:"reconcileThreshold"`
}
func (*FailedPodRecoveryPolicy) DeepCopy ¶ added in v1.1.1
func (in *FailedPodRecoveryPolicy) DeepCopy() *FailedPodRecoveryPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailedPodRecoveryPolicy.
func (*FailedPodRecoveryPolicy) DeepCopyInto ¶ added in v1.1.1
func (in *FailedPodRecoveryPolicy) DeepCopyInto(out *FailedPodRecoveryPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageSyncStatus ¶
type ImageSyncStatus struct {
// LastTransitionTime the last transition time
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// Status the status of the image sync
// enum: True, False
// +optional
Status string `json:"status,omitempty"`
}
ImageSyncStatus defines the observed state of ImageSync
func (*ImageSyncStatus) DeepCopy ¶
func (in *ImageSyncStatus) DeepCopy() *ImageSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSyncStatus.
func (*ImageSyncStatus) DeepCopyInto ¶
func (in *ImageSyncStatus) DeepCopyInto(out *ImageSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeAffinityPresetSpec ¶
type NodeAffinityPresetSpec struct {
// Key for the node affinity
// +kubebuilder:validation:MinLength=1
// +optional
Key string `json:"key,omitempty"`
// Values for the node affinity
// +kubebuilder:validation:MinItems=1
// +optional
Values []string `json:"values,omitempty"`
}
NodeAffinityPresetSpec defines node affinity rules.
func (*NodeAffinityPresetSpec) DeepCopy ¶
func (in *NodeAffinityPresetSpec) DeepCopy() *NodeAffinityPresetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAffinityPresetSpec.
func (*NodeAffinityPresetSpec) DeepCopyInto ¶
func (in *NodeAffinityPresetSpec) DeepCopyInto(out *NodeAffinityPresetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodMonitorEndpoint ¶ added in v1.1.1
type PodMonitorEndpoint struct {
// Port is the pod port name exposed for scraping.
// Defaults to "metrics" when omitted.
// +optional
Port string `json:"port,omitempty"`
// RelabelConfigs defines target relabeling rules for this endpoint.
// +optional
RelabelConfigs []PodMonitorRelabelConfig `json:"relabelConfigs,omitempty"`
}
PodMonitorEndpoint defines a simplified pod metrics endpoint config.
func (*PodMonitorEndpoint) DeepCopy ¶ added in v1.1.1
func (in *PodMonitorEndpoint) DeepCopy() *PodMonitorEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorEndpoint.
func (*PodMonitorEndpoint) DeepCopyInto ¶ added in v1.1.1
func (in *PodMonitorEndpoint) DeepCopyInto(out *PodMonitorEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodMonitorInfo ¶ added in v1.1.0
type PodMonitorInfo struct {
// Enable define if need create pod monitor
// default: false
// +kubebuilder:default=false
// +optional
Enable bool `json:"enable,omitempty"`
// Endpoints defines the pod monitor scrape endpoints.
// If empty, a single endpoint with port "metrics" is used.
// +optional
Endpoints []PodMonitorEndpoint `json:"endpoints,omitempty"`
}
func (*PodMonitorInfo) DeepCopy ¶ added in v1.1.0
func (in *PodMonitorInfo) DeepCopy() *PodMonitorInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorInfo.
func (*PodMonitorInfo) DeepCopyInto ¶ added in v1.1.0
func (in *PodMonitorInfo) DeepCopyInto(out *PodMonitorInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodMonitorRelabelConfig ¶ added in v1.1.1
type PodMonitorRelabelConfig struct {
// TargetLabel is the label to which the resulting string is written.
// +optional
TargetLabel string `json:"targetLabel,omitempty"`
// Replacement value against which a Replace action is performed if the regex matches.
// +optional
Replacement string `json:"replacement,omitempty"`
// Action to perform based on the regex matching.
// +optional
Action string `json:"action,omitempty"`
}
PodMonitorRelabelConfig defines a simplified relabel config.
func (*PodMonitorRelabelConfig) DeepCopy ¶ added in v1.1.1
func (in *PodMonitorRelabelConfig) DeepCopy() *PodMonitorRelabelConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorRelabelConfig.
func (*PodMonitorRelabelConfig) DeepCopyInto ¶ added in v1.1.1
func (in *PodMonitorRelabelConfig) DeepCopyInto(out *PodMonitorRelabelConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateKeyInfo ¶ added in v1.1.1
type PrivateKeyInfo struct {
// Algorithm is the cryptographic algorithm used for the private key.
// +kubebuilder:validation:Enum=RSA;ECDSA;Ed25519
// +optional
Algorithm string `json:"algorithm,omitempty"`
// Size is the size of the private key in bits.
// +kubebuilder:validation:Minimum=1
// +optional
Size int `json:"size,omitempty"`
}
PrivateKeyInfo contains details about the private key used by the CA.
func (*PrivateKeyInfo) DeepCopy ¶ added in v1.1.1
func (in *PrivateKeyInfo) DeepCopy() *PrivateKeyInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateKeyInfo.
func (*PrivateKeyInfo) DeepCopyInto ¶ added in v1.1.1
func (in *PrivateKeyInfo) DeepCopyInto(out *PrivateKeyInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶ added in v1.1.0
type Project struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProjectSpec `json:"spec,omitempty"`
Status ProjectStatus `json:"status,omitempty"`
}
Project is the Schema for the projects API
func (*Project) DeepCopy ¶ added in v1.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶ added in v1.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶ added in v1.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectList ¶ added in v1.1.0
type ProjectList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Project `json:"items"`
}
ProjectList contains a list of Project
func (*ProjectList) DeepCopy ¶ added in v1.1.0
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶ added in v1.1.0
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶ added in v1.1.0
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectSpec ¶ added in v1.1.0
type ProjectSpec struct {
// CA contains information about the Certificate Authority configuration.
// +optional
CA CAInfo `json:"ca,omitempty"`
}
ProjectSpec defines the desired state of Project
func (*ProjectSpec) DeepCopy ¶ added in v1.1.0
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶ added in v1.1.0
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectStatus ¶ added in v1.1.0
type ProjectStatus struct {
}
ProjectStatus defines the observed state of Project
func (*ProjectStatus) DeepCopy ¶ added in v1.1.0
func (in *ProjectStatus) DeepCopy() *ProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectStatus.
func (*ProjectStatus) DeepCopyInto ¶ added in v1.1.0
func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PvcCapacity ¶
type PvcCapacity struct {
// Storage represents the actual resources of the PVC.
// +optional
Storage resource.Quantity `json:"storage"`
}
PvcCapacity represents the actual resources of the PVC.
func (*PvcCapacity) DeepCopy ¶
func (in *PvcCapacity) DeepCopy() *PvcCapacity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PvcCapacity.
func (*PvcCapacity) DeepCopyInto ¶
func (in *PvcCapacity) DeepCopyInto(out *PvcCapacity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PvcInfo ¶
type PvcInfo struct {
// Name of a persistent volume claim.
// +optional
Name string `json:"name"`
// VolumeName name of volume
// +optional
VolumeName string `json:"volumeName"`
// AccessModes contains the actual access modes the volume backing the PVC has.
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
// +optional
AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes"`
// Capacity represents the actual resources of the PVC.
// +optional
Capacity PvcCapacity `json:"capacity"`
// Phase represents the current phase of PersistentVolumeClaim.
// +optional
Phase corev1.PersistentVolumeClaimPhase `json:"phase"`
}
PvcInfo represents the current information/status of a persistent volume claim.
func (*PvcInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PvcInfo.
func (*PvcInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PvcSyncStatus ¶
type PvcSyncStatus struct {
// LastTransitionTime the last transition time
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// Status the status of the pvc sync
// enum: True, False
// +optional
Status string `json:"status,omitempty"`
}
PvcSyncStatus defines the observed state of PvcSync
func (*PvcSyncStatus) DeepCopy ¶
func (in *PvcSyncStatus) DeepCopy() *PvcSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PvcSyncStatus.
func (*PvcSyncStatus) DeepCopyInto ¶
func (in *PvcSyncStatus) DeepCopyInto(out *PvcSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSyncStatus ¶
type ResourceSyncStatus struct {
// LastTransitionTime the last transition time
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
// Status the status of the resource sync
// enum: True, False
// +optional
Status string `json:"status,omitempty"`
}
ResourceSyncStatus defines the observed state of ResourceSync
func (*ResourceSyncStatus) DeepCopy ¶
func (in *ResourceSyncStatus) DeepCopy() *ResourceSyncStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSyncStatus.
func (*ResourceSyncStatus) DeepCopyInto ¶
func (in *ResourceSyncStatus) DeepCopyInto(out *ResourceSyncStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RollingUpdateSpec ¶
type RollingUpdateSpec struct {
// Partition Number of partitions for the update
// +kubebuilder:validation:Minimum=0
// +optional
Partition int32 `json:"partition,omitempty"`
// +kubebuilder:validation:Minimum=0
// +optional
MaxUnavailable int32 `json:"maxUnavailable,omitempty"`
}
RollingUpdateSpec defines the rolling update configuration.
func (*RollingUpdateSpec) DeepCopy ¶
func (in *RollingUpdateSpec) DeepCopy() *RollingUpdateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateSpec.
func (*RollingUpdateSpec) DeepCopyInto ¶
func (in *RollingUpdateSpec) DeepCopyInto(out *RollingUpdateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretInfo ¶
type SecretInfo struct {
// Name of the secret
// +optional
Name string `json:"name,omitempty"`
// MountPath Mount path of the secret
// +optional
MountPath string `json:"mountPath,omitempty"`
}
func (*SecretInfo) DeepCopy ¶
func (in *SecretInfo) DeepCopy() *SecretInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretInfo.
func (*SecretInfo) DeepCopyInto ¶
func (in *SecretInfo) DeepCopyInto(out *SecretInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageSpec ¶
type StorageSpec struct {
// Name of the storage
// +kubebuilder:validation:MinLength=1
// +optional
Name string `json:"name,omitempty"`
// Size of the storage
// +kubebuilder:validation:Pattern=`^([0-9]+)(\.[0-9]+)?(Ei|Pi|Ti|Gi|Mi|Ki|E|P|T|G|M|K)?$`
// +optional
Size string `json:"size,omitempty"`
// StorageClassName storage class name
// +optional
StorageClassName string `json:"storageClassName,omitempty"`
// MountPath Mount path
// +kubebuilder:validation:Pattern=`^/.*`
// +optional
MountPath string `json:"mountPath,omitempty"`
}
StorageSpec defines the configuration for storage.
func (*StorageSpec) DeepCopy ¶
func (in *StorageSpec) DeepCopy() *StorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
func (*StorageSpec) DeepCopyInto ¶
func (in *StorageSpec) DeepCopyInto(out *StorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Unit ¶
type Unit struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UnitSpec `json:"spec,omitempty"`
Status UnitStatus `json:"status,omitempty"`
}
Unit is the Schema for the units API
func (*Unit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unit.
func (*Unit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Unit) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Unit) MainContainerName ¶
MainContainerName returns the name of the main container
type UnitList ¶
type UnitList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Unit `json:"items"`
}
UnitList contains a list of Unit
func (*UnitList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitList.
func (*UnitList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UnitList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UnitPhase ¶
type UnitPhase string
UnitPhase is a label for the condition of a pod at the current time. +enum
const ( // UnitPending means the pod has been accepted by the system, but one or more of the containers // has not been started. This includes time before being bound to a node, as well as time spent // pulling images onto the host. UnitPending UnitPhase = "Pending" // UnitRunning means the pod has been bound to a node and all of the containers have been started. // At least one container is still running or is in the process of being restarted. UnitRunning UnitPhase = "Running" // UnitReady means the pod Running and ready condition = true UnitReady UnitPhase = "Ready" // UnitSucceeded means that all containers in the pod have voluntarily terminated // with a container exit code of 0, and the system is not going to restart any of these containers. UnitSucceeded UnitPhase = "Succeeded" // UnitFailed means that all containers in the pod have terminated, and at least one container has // terminated in a failure (exited with a non-zero exit code or was stopped by the system). UnitFailed UnitPhase = "Failed" // UnitUnknown means that for some reason the state of the pod could not be obtained, typically due // to an error in communicating with the host of the pod. // Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095) UnitUnknown UnitPhase = "Unknown" )
These are the valid statuses of pods.
type UnitPodTemplateSpec ¶ added in v1.1.1
type UnitPodTemplateSpec struct {
// Name must be unique within a namespace. Is required when creating resources, although
// some resources may allow a client to request the generation of an appropriate name
// automatically. Name is primarily intended for creation idempotence and configuration
// definition.
// Cannot be updated.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
// +optional
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
// Namespace defines the space within which each name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
// Not all objects are required to be scoped to a namespace - the value of this field for
// those objects will be empty.
//
// Must be a DNS_LABEL.
// Cannot be updated.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
// +optional
Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
// Map of string keys and values that can be used to organize and categorize
// (scope and select) objects. May match selectors of replication controllers
// and services.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
// +optional
Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
// Annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
// +optional
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`
// Specification of the desired behavior of the pod.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec corev1.PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}
func (*UnitPodTemplateSpec) DeepCopy ¶ added in v1.1.1
func (in *UnitPodTemplateSpec) DeepCopy() *UnitPodTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitPodTemplateSpec.
func (*UnitPodTemplateSpec) DeepCopyInto ¶ added in v1.1.1
func (in *UnitPodTemplateSpec) DeepCopyInto(out *UnitPodTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitServiceSpec ¶
type UnitServiceSpec struct {
// Type of the unit service (e.g., ClusterIP)
// +kubebuilder:validation:Enum=ClusterIP;NodePort;LoadBalancer;ExternalName
// +optional
Type string `json:"type,omitempty"`
}
UnitServiceSpec defines the configuration for unit services.
func (*UnitServiceSpec) DeepCopy ¶
func (in *UnitServiceSpec) DeepCopy() *UnitServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitServiceSpec.
func (*UnitServiceSpec) DeepCopyInto ¶
func (in *UnitServiceSpec) DeepCopyInto(out *UnitServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitServiceStatus ¶ added in v1.1.0
type UnitServiceStatus struct {
// Name which is a map, the key is unit name, the value is unit service name
// +optional
Name map[string]string `json:"name,omitempty"`
}
func (*UnitServiceStatus) DeepCopy ¶ added in v1.1.0
func (in *UnitServiceStatus) DeepCopy() *UnitServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitServiceStatus.
func (*UnitServiceStatus) DeepCopyInto ¶ added in v1.1.0
func (in *UnitServiceStatus) DeepCopyInto(out *UnitServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitSet ¶
type UnitSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UnitSetSpec `json:"spec,omitempty"`
Status UnitSetStatus `json:"status,omitempty"`
}
UnitSet is the Schema for the unitsets API
func (*UnitSet) ConfigTemplateName ¶
ConfigTemplateName unitset configtemplate Name
func (*UnitSet) ConfigValueName ¶
ConfigValueName unitset configvalue Name
func (*UnitSet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitSet.
func (*UnitSet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UnitSet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*UnitSet) ExternalServiceName ¶
func (*UnitSet) HeadlessServiceName ¶
func (*UnitSet) PodTemplateName ¶
func (*UnitSet) TemplateConfigTemplateName ¶
TemplateConfigTemplateName configtemplate Name
func (*UnitSet) TemplateConfigValueName ¶
TemplateConfigValueName configvalue Name
func (*UnitSet) TemplatePodTemplateName ¶
type UnitSetList ¶
type UnitSetList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UnitSet `json:"items"`
}
UnitSetList contains a list of UnitSet
func (*UnitSetList) DeepCopy ¶
func (in *UnitSetList) DeepCopy() *UnitSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitSetList.
func (*UnitSetList) DeepCopyInto ¶
func (in *UnitSetList) DeepCopyInto(out *UnitSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UnitSetList) DeepCopyObject ¶
func (in *UnitSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UnitSetSpec ¶
type UnitSetSpec struct {
// Type is the type of the unitset
// +kubebuilder:validation:MinLength=1
Type string `json:"type,omitempty"`
// Edition of the unit set
// +kubebuilder:validation:MinLength=1
Edition string `json:"edition,omitempty"`
// Version of the unit set, e.g.:8.0.40
// +kubebuilder:validation:MinLength=1
Version string `json:"version,omitempty"`
// Units Number of units in the unitset
// +kubebuilder:validation:Minimum=1
Units int `json:"units,omitempty"`
// Resources Resource requirements for the units
// +optional
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// ResizePolicy resources resize policy for the container.
// +optional
ResizePolicy []corev1.ContainerResizePolicy `json:"resizePolicy,omitempty"`
// Env Environment variables for the units
// +optional
Env []corev1.EnvVar `json:"env,omitempty"`
// ExternalService Configuration for external services
// +optional
ExternalService ExternalServiceSpec `json:"externalService,omitempty"`
// UnitService Configuration for unit services
// +optional
UnitService UnitServiceSpec `json:"unitService,omitempty"`
// UpdateStrategy Strategy for updating the unit set
// +optional
UpdateStrategy UpdateStrategySpec `json:"updateStrategy,omitempty"`
//NodeAffinityPreset Node affinity rules
// +optional
NodeAffinityPreset []NodeAffinityPresetSpec `json:"nodeAffinityPreset,omitempty"`
// PodAntiAffinityPreset Pod anti-affinity policy
// +kubebuilder:validation:Enum=soft;hard
// +optional
PodAntiAffinityPreset string `json:"podAntiAffinityPreset,omitempty"`
// Storages defines the configuration for storage
// +optional
Storage []StorageSpec `json:"storage,omitempty"`
// EmptyDir defines the configuration for emptyDir
// +optional
EmptyDir []EmptyDirSpec `json:"emptyDir,omitempty"`
// ExtraVolume defines the configuration for extra volume
// +optional
ExtraVolume []ExtraVolumeInfo `json:"extraVolume,omitempty"`
// CertificateProfile defines the configuration for certificate profile
// +optional
CertificateProfile CertificateProfile `json:"certificateProfile,omitempty"`
// PodMonitor defines the configuration for pod monitor
// +optional
PodMonitor PodMonitorInfo `json:"podMonitor,omitempty"`
}
UnitSetSpec defines the desired state of UnitSet
func (*UnitSetSpec) DeepCopy ¶
func (in *UnitSetSpec) DeepCopy() *UnitSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitSetSpec.
func (*UnitSetSpec) DeepCopyInto ¶
func (in *UnitSetSpec) DeepCopyInto(out *UnitSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitSetStatus ¶
type UnitSetStatus struct {
// Conditions is an array of conditions.
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the most recent generation observed for this UnitSet. It corresponds to the
// UnitSet's generation, which is updated on mutation by the API Server.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Units the number of units
// +optional
Units int `json:"units,omitempty"`
// ReadyUnits the number of ready units
// +optional
ReadyUnits int `json:"readyUnits"`
// PvcSyncStatus defines the status of the pvc sync
// +optional
PvcSyncStatus PvcSyncStatus `json:"unitPVCSynced,omitempty"`
// ImageSyncStatus defines the status of the image sync
// +optional
ImageSyncStatus ImageSyncStatus `json:"unitImageSynced,omitempty"`
// ResourceSyncStatus defines the status of the resource sync
// +optional
ResourceSyncStatus ResourceSyncStatus `json:"unitResourceSynced,omitempty"`
// InUpdate used to mark if a mirror upgrade or resource change is in progress
// +optional
InUpdate string `json:"inUpdate,omitempty"`
// ExternalService the information of unitset external service
// +optional
ExternalService ExternalServiceStatus `json:"externalService,omitempty"`
// UnitService the information of unit service
// +optional
UnitService UnitServiceStatus `json:"unitService,omitempty"`
}
UnitSetStatus defines the observed state of UnitSet
func (*UnitSetStatus) DeepCopy ¶
func (in *UnitSetStatus) DeepCopy() *UnitSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitSetStatus.
func (*UnitSetStatus) DeepCopyInto ¶
func (in *UnitSetStatus) DeepCopyInto(out *UnitSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitSpec ¶
type UnitSpec struct {
// Startup defines whether the service is started or not
// +optional
Startup bool `json:"startup,omitempty"`
// ConfigTemplateName defines the config template name.
// A unitset is instantiated as a config template for the unitset
// by copying the corresponding version template.
// one for a set of unitsets.
// The unitset is then assigned a value to the field.
// unitset is not processed logically
// and is passed as a parameter when the unit agent is called.
// +kubebuilder:validation:MinLength=1
// +optional
ConfigTemplateName string `json:"configTemplateName,omitempty"`
// ConfigValueName defines the config value name.
// unitset instantiates one for each unit by copying the corresponding version template.
// The value is then assigned to the field.
// unitset does no logical processing
// and is passed as a parameter in the call to the unit agent
// +kubebuilder:validation:MinLength=1
// +optional
ConfigValueName string `json:"configValueName,omitempty"`
// VolumeClaimTemplates is a user's request for and claim to a persistent volume
// +optional
VolumeClaimTemplates []UnitVolumeClaimTemplate `json:"volumeClaimTemplates,omitempty"`
// Template describes the data a pod should have when created from a template
// +optional
Template UnitPodTemplateSpec `json:"template,omitempty"`
// FailedPodRecoveryPolicy indicates whether failed pod recovery is enabled
// +optional
FailedPodRecoveryPolicy *FailedPodRecoveryPolicy `json:"failedPodRecoveryPolicy,omitempty"`
}
UnitSpec defines the desired state of Unit
func (*UnitSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitSpec.
func (*UnitSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitStatus ¶
type UnitStatus struct {
// Conditions is an array of conditions.
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the most recent generation observed for this Unit. It corresponds to the
// Unit's generation, which is updated on mutation by the API Server.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Phase is the current lifecycle phase of the unit.
// +optional
Phase UnitPhase `json:"phase"`
// NodeReady is the state of node ready condition.
// +optional
NodeReady string `json:"nodeReady"`
// NodeName is the node name of the unit.
// +optional
NodeName string `json:"nodeName"`
// Task is the current task of the unit.
// +optional
Task string `json:"task"`
// ProcessState is the current process state of the unit-operator.
// +optional
ProcessState string `json:"processState"`
// HostIP represents a single IP address allocated to the host.
// +optional
HostIP string `json:"hostIP"`
// PodIPs holds the IP addresses allocated to the pod.
// +optional
PodIPs []corev1.PodIP `json:"podIPs"`
// ConfigSyncStatus represents the status of the config sync.
// +optional
ConfigSyncStatus ConfigSyncStatus `json:"configSyncStatus,omitempty"`
// PersistentVolumeClaim represents the current information/status of a persistent volume claim.
// +optional
PersistentVolumeClaim []PvcInfo `json:"persistentVolumeClaim"`
}
UnitStatus defines the observed state of Unit
func (*UnitStatus) DeepCopy ¶
func (in *UnitStatus) DeepCopy() *UnitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitStatus.
func (*UnitStatus) DeepCopyInto ¶
func (in *UnitStatus) DeepCopyInto(out *UnitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitVolumeClaimTemplate ¶ added in v1.1.1
type UnitVolumeClaimTemplate struct {
// Refers to the name of a storage defined in either:
// The value of `name` must match the `name` field of a volumeMount specified in the corresponding `volumeMounts` array.
//
// +kubebuilder:validation:Required
Name string `json:"name"`
// Specifies the labels for the PVC of the volume.
//
// +optional
Labels map[string]string `json:"labels,omitempty"`
// Specifies the annotations for the PVC of the volume.
//
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
// Defines the desired characteristics of a PersistentVolumeClaim that will be created for the volume
// with the mount name specified in the `name` field.
//
// When a Pod is created for this ClusterComponent, a new PVC will be created based on the specification
// defined in the `spec` field. The PVC will be associated with the volume mount specified by the `name` field.
//
// +optional
Spec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"`
}
func (*UnitVolumeClaimTemplate) DeepCopy ¶ added in v1.1.1
func (in *UnitVolumeClaimTemplate) DeepCopy() *UnitVolumeClaimTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitVolumeClaimTemplate.
func (*UnitVolumeClaimTemplate) DeepCopyInto ¶ added in v1.1.1
func (in *UnitVolumeClaimTemplate) DeepCopyInto(out *UnitVolumeClaimTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpdateStrategySpec ¶
type UpdateStrategySpec struct {
// Type of update strategy (e.g., RollingUpdate)
// +kubebuilder:validation:Enum=RollingUpdate;OnDelete
// +optional
Type string `json:"type,omitempty"`
// RollingUpdate Rolling update configuration
// +optional
RollingUpdate RollingUpdateSpec `json:"rollingUpdate,omitempty"`
}
UpdateStrategySpec defines the update strategy for the unit set.
func (*UpdateStrategySpec) DeepCopy ¶
func (in *UpdateStrategySpec) DeepCopy() *UpdateStrategySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateStrategySpec.
func (*UpdateStrategySpec) DeepCopyInto ¶
func (in *UpdateStrategySpec) DeepCopyInto(out *UpdateStrategySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.