v1alpha1

package
v0.0.0-...-38aa162 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

This section is empty.

Variables

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

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"`
	Image         string `json:"image"`
	// +kubebuilder:validation:Optional
	Env map[string]string `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

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (in *Istio) DeepCopy() *Istio

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

func (*Istio) DeepCopyInto

func (in *Istio) DeepCopyInto(out *Istio)

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

type MultiCluster

type MultiCluster struct {
	Enable      bool   `json:"enable"`
	ClusterName string `json:"clusterName"`
}

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

func (in *Ports) DeepCopy() *Ports

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

func (*Ports) DeepCopyInto

func (in *Ports) DeepCopyInto(out *Ports)

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

func (in *RBAC) DeepCopy() *RBAC

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

func (*RBAC) DeepCopyInto

func (in *RBAC) DeepCopyInto(out *RBAC)

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.

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
	ServiceName string `json:"serviceName"`

	// +kubebuilder:validation:Optional
	Ports Ports `json:"ports,omitempty"`

	Store Store `json:"store"`
}

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

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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 Store

type Store struct {
	Resources apiv1.ResourceRequirements `json:"resources"`
}

func (*Store) DeepCopy

func (in *Store) DeepCopy() *Store

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

func (*Store) DeepCopyInto

func (in *Store) DeepCopyInto(out *Store)

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