v1alpha1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the elastic v1alpha1 API group +kubebuilder:object:generate=true +groupName=elastic.carrefour.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "elastic.carrefour.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

func ValidateUpdateSecret

func ValidateUpdateSecret(allErrs field.ErrorList, namespace string, newSecretSelector *v1.SecretKeySelector, oldSecretSelector *v1.SecretKeySelector, k8sClient client.Client) field.ErrorList

Types

type ElasticIndex

type ElasticIndex struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ElasticIndexSpec   `json:"spec,omitempty"`
	Status ElasticIndexStatus `json:"status,omitempty"`
}

ElasticIndex is the Schema for the elasticindices API

func (*ElasticIndex) DeepCopy

func (in *ElasticIndex) DeepCopy() *ElasticIndex

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

func (*ElasticIndex) DeepCopyInto

func (in *ElasticIndex) DeepCopyInto(out *ElasticIndex)

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

func (*ElasticIndex) DeepCopyObject

func (in *ElasticIndex) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ElasticIndex) Default

func (r *ElasticIndex) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ElasticIndex) SetupWebhookWithManager

func (r *ElasticIndex) SetupWebhookWithManager(mgr ctrl.Manager, namespaces []string) error

func (*ElasticIndex) ValidateCreate

func (r *ElasticIndex) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ElasticIndex) ValidateDelete

func (r *ElasticIndex) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ElasticIndex) ValidateUpdate

func (r *ElasticIndex) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ElasticIndexList

type ElasticIndexList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ElasticIndex `json:"items"`
}

ElasticIndexList contains a list of ElasticIndex

func (*ElasticIndexList) DeepCopy

func (in *ElasticIndexList) DeepCopy() *ElasticIndexList

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

func (*ElasticIndexList) DeepCopyInto

func (in *ElasticIndexList) DeepCopyInto(out *ElasticIndexList)

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

func (*ElasticIndexList) DeepCopyObject

func (in *ElasticIndexList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ElasticIndexSpec

type ElasticIndexSpec struct {

	// Index name in elasticsearch server
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^[a-z0-9-_\.]+$`
	IndexName *string `json:"indexName"`

	// Elasticsearch URI with this format <scheme>://<user>:<password>@<hostname>:<port> from a key of a secret in the local namespace
	// +kubebuilder:validation:Required
	ElasticURI ElasticURISource `json:"elasticURI"`

	// Number of elasticsearch shards
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=500
	// +kubebuilder:validation:Required
	NumberOfShards *int32 `json:"numberOfShards"`

	// Number of elasticsearch replicas
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=3
	// +kubebuilder:validation:Required
	NumberOfReplicas *int32 `json:"numberOfReplicas"`

	// Index mappings, settings and aliases
	// +kubebuilder:validation:Required
	Model *string `json:"model"`
}

ElasticIndexSpec defines the desired state of ElasticIndex

func (*ElasticIndexSpec) DeepCopy

func (in *ElasticIndexSpec) DeepCopy() *ElasticIndexSpec

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

func (*ElasticIndexSpec) DeepCopyInto

func (in *ElasticIndexSpec) DeepCopyInto(out *ElasticIndexSpec)

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

type ElasticIndexStatus

type ElasticIndexStatus struct {

	// Status indicates whether index was created successfully in elasticsearch server. Possible values: Created, Error, Retry
	// +optional
	Status string `json:"status,omitempty"`

	// The http code status returned by elasticsearch
	// +optional
	HttpCodeStatus string `json:"httpCodeStatus,omitempty"`

	// The message returned by elasticsearch. Useful when Status is Error or Retry
	// +optional
	Message string `json:"message,omitempty"`
}

ElasticIndexStatus defines the observed state of ElasticIndex

func (*ElasticIndexStatus) DeepCopy

func (in *ElasticIndexStatus) DeepCopy() *ElasticIndexStatus

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

func (*ElasticIndexStatus) DeepCopyInto

func (in *ElasticIndexStatus) DeepCopyInto(out *ElasticIndexStatus)

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

type ElasticTemplate

type ElasticTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ElasticTemplateSpec   `json:"spec,omitempty"`
	Status ElasticTemplateStatus `json:"status,omitempty"`
}

ElasticTemplate is the Schema for the elastictemplates API

func (*ElasticTemplate) DeepCopy

func (in *ElasticTemplate) DeepCopy() *ElasticTemplate

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

func (*ElasticTemplate) DeepCopyInto

func (in *ElasticTemplate) DeepCopyInto(out *ElasticTemplate)

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

func (*ElasticTemplate) DeepCopyObject

func (in *ElasticTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ElasticTemplate) Default

func (r *ElasticTemplate) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ElasticTemplate) SetupWebhookWithManager

func (r *ElasticTemplate) SetupWebhookWithManager(mgr ctrl.Manager, namespaces []string) error

func (*ElasticTemplate) ValidateCreate

func (r *ElasticTemplate) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ElasticTemplate) ValidateDelete

func (r *ElasticTemplate) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ElasticTemplate) ValidateUpdate

func (r *ElasticTemplate) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ElasticTemplateList

type ElasticTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ElasticTemplate `json:"items"`
}

ElasticTemplateList contains a list of ElasticTemplate

func (*ElasticTemplateList) DeepCopy

func (in *ElasticTemplateList) DeepCopy() *ElasticTemplateList

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

func (*ElasticTemplateList) DeepCopyInto

func (in *ElasticTemplateList) DeepCopyInto(out *ElasticTemplateList)

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

func (*ElasticTemplateList) DeepCopyObject

func (in *ElasticTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ElasticTemplateSpec

type ElasticTemplateSpec struct {

	// Template name in elasticsearch server
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^[a-z0-9-_\.]+$`
	TemplateName *string `json:"templateName"`

	// Elasticsearch URI with this format <scheme>://<user>:<password>@<hostname>:<port> from a key of a secret in the local namespace
	// +kubebuilder:validation:Required
	ElasticURI ElasticURISource `json:"elasticURI"`

	// Number of elasticsearch shards
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=500
	// +kubebuilder:validation:Required
	NumberOfShards *int32 `json:"numberOfShards"`

	// Number of elasticsearch replicas
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=3
	// +kubebuilder:validation:Required
	NumberOfReplicas *int32 `json:"numberOfReplicas"`

	// Template order
	// +optional
	// +nullable
	Order *int `json:"order,omitempty"`

	// Template mappings, settings, index_patterns and version
	// +kubebuilder:validation:Required
	Model *string `json:"model"`
}

ElasticTemplateSpec defines the desired state of ElasticTemplate

func (*ElasticTemplateSpec) DeepCopy

func (in *ElasticTemplateSpec) DeepCopy() *ElasticTemplateSpec

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

func (*ElasticTemplateSpec) DeepCopyInto

func (in *ElasticTemplateSpec) DeepCopyInto(out *ElasticTemplateSpec)

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

type ElasticTemplateStatus

type ElasticTemplateStatus struct {

	// Status indicates whether template was created successfully in elasticsearch server. Possible values: Created, Error, Retry
	// +optional
	Status string `json:"status,omitempty"`

	// The http code status returned by elasticsearch
	// +optional
	HttpCodeStatus string `json:"httpCodeStatus,omitempty"`

	// The message returned by elasticsearch. Useful when Status is Error or Retry
	// +optional
	Message string `json:"message,omitempty"`
}

ElasticTemplateStatus defines the observed state of ElasticTemplate

func (*ElasticTemplateStatus) DeepCopy

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

func (*ElasticTemplateStatus) DeepCopyInto

func (in *ElasticTemplateStatus) DeepCopyInto(out *ElasticTemplateStatus)

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

type ElasticURISource

type ElasticURISource struct {
	// +kubebuilder:validation:Required
	SecretKeyRef *v1.SecretKeySelector `json:"secretKeyRef" protobuf:"bytes,4,opt,name=secretKeyRef"`
}

func (*ElasticURISource) DeepCopy

func (in *ElasticURISource) DeepCopy() *ElasticURISource

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

func (*ElasticURISource) DeepCopyInto

func (in *ElasticURISource) DeepCopyInto(out *ElasticURISource)

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

type EsObjectInfo

type EsObjectInfo struct {
	Namespace string
	Name      string

	Host string
	Port string
	// contains filtered or unexported fields
}

func (*EsObjectInfo) DeepCopy added in v1.0.0

func (in *EsObjectInfo) DeepCopy() *EsObjectInfo

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

func (*EsObjectInfo) DeepCopyInto added in v1.0.0

func (in *EsObjectInfo) DeepCopyInto(out *EsObjectInfo)

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