Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ts v1alpha1 API group +kubebuilder:object:generate=true +groupName=ts.opentelekomcloud.com
Index ¶
- Variables
- type DocSearchScraperSpec
- type IngressSpec
- type StorageSpec
- type TypesenseCluster
- type TypesenseClusterList
- type TypesenseClusterSpec
- func (in *TypesenseClusterSpec) DeepCopy() *TypesenseClusterSpec
- func (in *TypesenseClusterSpec) DeepCopyInto(out *TypesenseClusterSpec)
- func (s *TypesenseClusterSpec) GetCorsDomains() string
- func (s *TypesenseClusterSpec) GetStorage() *StorageSpec
- func (s *TypesenseClusterSpec) IsCorsEnabled() bool
- type TypesenseClusterStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ts.opentelekomcloud.com", 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 DocSearchScraperSpec ¶
type DocSearchScraperSpec struct { Name string `json:"name"` Image string `json:"image"` Config string `json:"config"` // +kubebuilder:validation:Pattern:=`(^((\*\/)?([0-5]?[0-9])((\,|\-|\/)([0-5]?[0-9]))*|\*)\s+((\*\/)?((2[0-3]|1[0-9]|[0-9]|00))((\,|\-|\/)(2[0-3]|1[0-9]|[0-9]|00))*|\*)\s+((\*\/)?([1-9]|[12][0-9]|3[01])((\,|\-|\/)([1-9]|[12][0-9]|3[01]))*|\*)\s+((\*\/)?([1-9]|1[0-2])((\,|\-|\/)([1-9]|1[0-2]))*|\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|des))\s+((\*\/)?[0-6]((\,|\-|\/)[0-6])*|\*|00|(sun|mon|tue|wed|thu|fri|sat))\s*$)|@(annually|yearly|monthly|weekly|daily|hourly|reboot)` // +kubebuilder:validation:Type=string Schedule string `json:"schedule"` }
func (*DocSearchScraperSpec) DeepCopy ¶
func (in *DocSearchScraperSpec) DeepCopy() *DocSearchScraperSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocSearchScraperSpec.
func (*DocSearchScraperSpec) DeepCopyInto ¶
func (in *DocSearchScraperSpec) DeepCopyInto(out *DocSearchScraperSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressSpec ¶
type IngressSpec struct { // +optional // +kubebuilder:validation:Pattern:=`^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$` Referer *string `json:"referer,omitempty"` // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern:=`^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9]))*$` Host string `json:"host"` ClusterIssuer string `json:"clusterIssuer"` IngressClassName string `json:"ingressClassName"` Annotations map[string]string `json:"annotations,omitempty"` }
func (*IngressSpec) DeepCopy ¶
func (in *IngressSpec) DeepCopy() *IngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
func (*IngressSpec) DeepCopyInto ¶
func (in *IngressSpec) DeepCopyInto(out *IngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageSpec ¶
type StorageSpec struct { // +optional // +kubebuilder:default="100Mi" Size resource.Quantity `json:"size,omitempty"` StorageClassName string `json:"storageClassName"` }
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 TypesenseCluster ¶
type TypesenseCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TypesenseClusterSpec `json:"spec,omitempty"` Status TypesenseClusterStatus `json:"status,omitempty"` }
TypesenseCluster is the Schema for the typesenseclusters API +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.image` +kubebuilder:printcolumn:name="Replicas",type=integer,JSONPath=`.spec.replicas` +kubebuilder:printcolumn:name="API Port",type=integer,JSONPath=`.spec.apiPort` +kubebuilder:printcolumn:name="Peering Port",type=integer,JSONPath=`.spec.peeringPort` +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status"
func (*TypesenseCluster) DeepCopy ¶
func (in *TypesenseCluster) DeepCopy() *TypesenseCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypesenseCluster.
func (*TypesenseCluster) DeepCopyInto ¶
func (in *TypesenseCluster) DeepCopyInto(out *TypesenseCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TypesenseCluster) DeepCopyObject ¶
func (in *TypesenseCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TypesenseClusterList ¶
type TypesenseClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TypesenseCluster `json:"items"` }
TypesenseClusterList contains a list of TypesenseCluster
func (*TypesenseClusterList) DeepCopy ¶
func (in *TypesenseClusterList) DeepCopy() *TypesenseClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypesenseClusterList.
func (*TypesenseClusterList) DeepCopyInto ¶
func (in *TypesenseClusterList) DeepCopyInto(out *TypesenseClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TypesenseClusterList) DeepCopyObject ¶
func (in *TypesenseClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TypesenseClusterSpec ¶
type TypesenseClusterSpec struct { Image string `json:"image"` AdminApiKey *corev1.SecretReference `json:"adminApiKey,omitempty"` // +optional // +kubebuilder:default=3 // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:ExclusiveMinimum=false // +kubebuilder:validation:Type=integer Replicas int32 `json:"replicas,omitempty"` // +optional // +kubebuilder:default=8108 // +kubebuilder:validation:Minimum=1024 // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:ExclusiveMinimum=true // +kubebuilder:validation:ExclusiveMaximum=false // +kubebuilder:validation:Type=integer ApiPort int `json:"apiPort,omitempty"` // +optional // +kubebuilder:default=8107 // +kubebuilder:validation:Minimum=1024 // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:ExclusiveMinimum=true // +kubebuilder:validation:ExclusiveMaximum=false // +kubebuilder:validation:Type=integer PeeringPort int `json:"peeringPort,omitempty"` // +optional // +kubebuilder:default=true // +kubebuilder:validation:Type=boolean ResetPeersOnError bool `json:"resetPeersOnError,omitempty"` // +optional // +kubebuilder:validation:Type=string CorsDomains *string `json:"corsDomains,omitempty"` Storage *StorageSpec `json:"storage"` Ingress *IngressSpec `json:"ingress,omitempty"` Scrapers []DocSearchScraperSpec `json:"scrapers,omitempty"` }
TypesenseClusterSpec defines the desired state of TypesenseCluster
func (*TypesenseClusterSpec) DeepCopy ¶
func (in *TypesenseClusterSpec) DeepCopy() *TypesenseClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypesenseClusterSpec.
func (*TypesenseClusterSpec) DeepCopyInto ¶
func (in *TypesenseClusterSpec) DeepCopyInto(out *TypesenseClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TypesenseClusterSpec) GetCorsDomains ¶
func (s *TypesenseClusterSpec) GetCorsDomains() string
func (*TypesenseClusterSpec) GetStorage ¶
func (s *TypesenseClusterSpec) GetStorage() *StorageSpec
func (*TypesenseClusterSpec) IsCorsEnabled ¶
func (s *TypesenseClusterSpec) IsCorsEnabled() bool
type TypesenseClusterStatus ¶
type TypesenseClusterStatus struct { // +optional // +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors={"urn:alm:descriptor:io.kubernetes.conditions"} Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
TypesenseClusterStatus defines the observed state of TypesenseCluster
func (*TypesenseClusterStatus) DeepCopy ¶
func (in *TypesenseClusterStatus) DeepCopy() *TypesenseClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypesenseClusterStatus.
func (*TypesenseClusterStatus) DeepCopyInto ¶
func (in *TypesenseClusterStatus) DeepCopyInto(out *TypesenseClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.