Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the seata v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.seata.apache.org
Index ¶
- Constants
- Variables
- type AutoScaling
- type CRDCommonFields
- type ContainerCommonFields
- type ContainerSpec
- type Image
- type Istio
- type MultiCluster
- type Persistence
- type Ports
- type RBAC
- type SeataServer
- type SeataServerList
- type SeataServerSpec
- type SeataServerStatus
- type Service
- type ServiceAccount
- type VolumeReclaimPolicy
Constants ¶
const ( DefaultSeataSessionStorageVolumeSize = "5Gi" DefaultSeataServerImage = "seataio/seata-server:latest" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "operator.seata.apache.org", Version: "v1alpha1"} // 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 AutoScaling ¶
type AutoScaling struct { Enable bool `json:"enable"` MinReplicas *int32 `json:"minReplicas"` MaxReplicas int32 `json:"maxReplicas"` TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage"` }
func (*AutoScaling) DeepCopy ¶
func (in *AutoScaling) DeepCopy() *AutoScaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScaling.
func (*AutoScaling) DeepCopyInto ¶
func (in *AutoScaling) DeepCopyInto(out *AutoScaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CRDCommonFields ¶
type CRDCommonFields struct { // +kubebuilder:validation:Optional // +nullable Replicas *int32 `json:"replicas,omitempty"` // +kubebuilder:validation:Optional SelectorLabels map[string]string `json:"selectorLabels"` // +kubebuilder:validation:Optional NodeSelector map[string]string `json:"nodeSelector"` // +kubebuilder:validation:Optional // +nullable Affinity *apiv1.Affinity `json:"affinity"` // +kubebuilder:validation:Optional Toleration []apiv1.Toleration `json:"toleration"` // +kubebuilder:validation:Optional // +nullable Service *Service `json:"service"` // +kubebuilder:validation:Optional RBAC *RBAC `json:"rbac"` // +kubebuilder:validation:Optional ServiceAccount *ServiceAccount `json:"serviceAccount"` // +kubebuilder:validation:Optional // +nullable AutoScaling *AutoScaling `json:"autoScaling"` // +kubebuilder:validation:Optional // +nullable PodSecurityContext *apiv1.PodSecurityContext `json:"podSecurityContext"` // +kubebuilder:validation:Optional EnableStatus bool `json:"enableStatus"` // +kubebuilder:validation:Optional EnableHigressIstio bool `json:"enableHigressIstio"` // +kubebuilder:validation:Optional EnableIstioAPI bool `json:"enableIstioAPI"` // +kubebuilder:validation:Optional IstioNamespace string `json:"istioNamespace"` // +kubebuilder:validation:Optional Revision string `json:"revision"` // +kubebuilder:validation:Optional // +nullable Istiod *Istio `json:"istiod"` // +kubebuilder:validation:Optional // +nullable MultiCluster *MultiCluster `json:"multiCluster"` Local bool `json:"local"` // +kubebuilder:validation:Enum=third-party-jwt;first-party-jwt JwtPolicy string `json:"jwtPolicy"` }
func (*CRDCommonFields) DeepCopy ¶
func (in *CRDCommonFields) DeepCopy() *CRDCommonFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRDCommonFields.
func (*CRDCommonFields) DeepCopyInto ¶
func (in *CRDCommonFields) DeepCopyInto(out *CRDCommonFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerCommonFields ¶
type ContainerCommonFields struct { // +kubebuilder:validation:Optional Name string `json:"name"` // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations"` Image Image `json:"image"` // +kubebuilder:validation:Optional ImagePullSecrets []apiv1.LocalObjectReference `json:"imagePullSecrets"` // +kubebuilder:validation:Optional Env map[string]string `json:"env"` // +kubebuilder:validation:Optional ReadinessProbe *apiv1.Probe `json:"readinessProbe"` // +kubebuilder:validation:Optional Ports []apiv1.ContainerPort `json:"ports"` // +kubebuilder:validation:Optional Resources *apiv1.ResourceRequirements `json:"resources"` // +kubebuilder:validation:Optional SecurityContext *apiv1.SecurityContext `json:"securityContext"` // +kubebuilder:validation:Optional LogLevel string `json:"logLevel"` // +kubebuilder:validation:Optional LogAsJson bool `json:"logAsJson"` }
func (*ContainerCommonFields) DeepCopy ¶
func (in *ContainerCommonFields) DeepCopy() *ContainerCommonFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerCommonFields.
func (*ContainerCommonFields) DeepCopyInto ¶
func (in *ContainerCommonFields) DeepCopyInto(out *ContainerCommonFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerSpec ¶
type ContainerSpec struct { // +kubebuilder:validation:Optional // +kubebuilder:default=seata-server ContainerName string `json:"containerName"` // +kubebuilder:validation:Optional // +kubebuilder:default="seataio/seata-server:latest" Image string `json:"image"` // +kubebuilder:validation:Optional Env []apiv1.EnvVar `json:"env"` // +kubebuilder:validation:Optional Resources apiv1.ResourceRequirements `json:"resources"` }
func (*ContainerSpec) DeepCopy ¶
func (in *ContainerSpec) DeepCopy() *ContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSpec.
func (*ContainerSpec) DeepCopyInto ¶
func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { Repository string `json:"repository"` Tag string `json:"tag"` // +kubebuilder:validation:Enum="";Always;Never;IfNotPresent ImagePullPolicy apiv1.PullPolicy `json:"imagePullPolicy"` }
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Istio ¶
type Istio struct {
EnableAnalysis bool `json:"enableAnalysis"`
}
func (*Istio) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Istio.
func (*Istio) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiCluster ¶
func (*MultiCluster) DeepCopy ¶
func (in *MultiCluster) DeepCopy() *MultiCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiCluster.
func (*MultiCluster) DeepCopyInto ¶
func (in *MultiCluster) DeepCopyInto(out *MultiCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Persistence ¶
type Persistence struct { // VolumeReclaimPolicy is a seata operator configuration. If it's set to Delete, // the corresponding PVCs will be deleted by the operator when seata server cluster is deleted. // The default value is Retain. // +kubebuilder:validation:Enum="Delete";"Retain" VolumeReclaimPolicy VolumeReclaimPolicy `json:"volumeReclaimPolicy,omitempty"` // PersistentVolumeClaimSpec is the spec to describe PVC for the container // This field is optional. If no PVC is specified default persistent volume // will get created. PersistentVolumeClaimSpec apiv1.PersistentVolumeClaimSpec `json:"spec,omitempty"` }
func (*Persistence) DeepCopy ¶
func (in *Persistence) DeepCopy() *Persistence
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Persistence.
func (*Persistence) DeepCopyInto ¶
func (in *Persistence) DeepCopyInto(out *Persistence)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ports ¶
type Ports struct { // +kubebuilder:validation:Optional // +kubebuilder:default=7091 ConsolePort int32 `json:"consolePort"` // +kubebuilder:validation:Optional // +kubebuilder:default=8091 ServicePort int32 `json:"servicePort"` // +kubebuilder:validation:Optional // +kubebuilder:default=9091 RaftPort int32 `json:"raftPort"` }
func (*Ports) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ports.
func (*Ports) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RBAC ¶
type RBAC struct {
Enable bool `json:"enable"`
}
func (*RBAC) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RBAC.
func (*RBAC) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeataServer ¶
type SeataServer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SeataServerSpec `json:"spec,omitempty"` Status SeataServerStatus `json:"status,omitempty"` }
SeataServer is the Schema for the seataservers API
func (*SeataServer) DeepCopy ¶
func (in *SeataServer) DeepCopy() *SeataServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeataServer.
func (*SeataServer) DeepCopyInto ¶
func (in *SeataServer) DeepCopyInto(out *SeataServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SeataServer) DeepCopyObject ¶
func (in *SeataServer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SeataServer) WithDefaults ¶
func (s *SeataServer) WithDefaults() bool
type SeataServerList ¶
type SeataServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SeataServer `json:"items"` }
SeataServerList contains a list of SeataServer
func (*SeataServerList) DeepCopy ¶
func (in *SeataServerList) DeepCopy() *SeataServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeataServerList.
func (*SeataServerList) DeepCopyInto ¶
func (in *SeataServerList) DeepCopyInto(out *SeataServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SeataServerList) DeepCopyObject ¶
func (in *SeataServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SeataServerSpec ¶
type SeataServerSpec struct { ContainerSpec `json:",inline"` // +kubebuilder:validation:Optional // +kubebuilder:validation:Minimum=1 // +kubebuilder:default=1 Replicas int32 `json:"replicas"` // +kubebuilder:validation:Optional // +kubebuilder:default=seata-server-cluster ServiceName string `json:"serviceName"` // +kubebuilder:validation:Optional Ports Ports `json:"ports,omitempty"` // +kubebuilder:validation:Optional Persistence Persistence `json:"persistence,omitempty"` }
SeataServerSpec defines the desired state of SeataServer
func (*SeataServerSpec) DeepCopy ¶
func (in *SeataServerSpec) DeepCopy() *SeataServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeataServerSpec.
func (*SeataServerSpec) DeepCopyInto ¶
func (in *SeataServerSpec) DeepCopyInto(out *SeataServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SeataServerStatus ¶
type SeataServerStatus struct { Synchronized bool `json:"synchronized"` Replicas int32 `json:"replicas"` ReadyReplicas int32 `json:"readyReplicas,omitempty"` }
SeataServerStatus defines the observed state of SeataServer
func (*SeataServerStatus) DeepCopy ¶
func (in *SeataServerStatus) DeepCopy() *SeataServerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SeataServerStatus.
func (*SeataServerStatus) DeepCopyInto ¶
func (in *SeataServerStatus) DeepCopyInto(out *SeataServerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { Type string `json:"type"` Ports []apiv1.ServicePort `json:"ports"` // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations"` // +kubebuilder:validation:Optional LoadBalancerIP string `json:"loadBalancerIP"` // +kubebuilder:validation:Optional LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges"` // +kubebuilder:validation:Optional ExternalTrafficPolicy string `json:"externalTrafficPolicy"` }
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccount ¶
type ServiceAccount struct { Enable bool `json:"enable"` // +kubebuilder:validation:Optional Name string `json:"name"` // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations"` }
func (*ServiceAccount) DeepCopy ¶
func (in *ServiceAccount) DeepCopy() *ServiceAccount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount.
func (*ServiceAccount) DeepCopyInto ¶
func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeReclaimPolicy ¶
type VolumeReclaimPolicy string
const ( VolumeReclaimPolicyRetain VolumeReclaimPolicy = "Retain" VolumeReclaimPolicyDelete VolumeReclaimPolicy = "Delete" )