elasticsearch

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainersSettings

type ContainersSettings struct {
	Name      string                      `json:"name,omitempty"`
	Env       []corev1.EnvVar             `json:"env,omitempty"`
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

type Elasticsearch

type Elasticsearch struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ElasticsearchSpec `json:"spec"`
}

type ElasticsearchAndSecret

type ElasticsearchAndSecret struct {
	Elasticsearch
	corev1.Secret
}

type ElasticsearchOperator

type ElasticsearchOperator struct {
	// contains filtered or unexported fields
}

func (*ElasticsearchOperator) Convert

func (eo *ElasticsearchOperator) Convert(sg *apistructs.ServiceGroup) interface{}

Convert Convert sg to cr, which is kubernetes yaml

func (*ElasticsearchOperator) Create

func (eo *ElasticsearchOperator) Create(k8syml interface{}) error

func (*ElasticsearchOperator) Get

func (eo *ElasticsearchOperator) Get(namespace, name string) (*Elasticsearch, error)

Get get elasticsearchs resource information

func (*ElasticsearchOperator) Inspect

func (*ElasticsearchOperator) IsSupported

func (eo *ElasticsearchOperator) IsSupported() bool

IsSupported Determine whether to support elasticseatch operator

func (*ElasticsearchOperator) NodeSetsConvert

func (eo *ElasticsearchOperator) NodeSetsConvert(svc apistructs.Service, scname string, affinity *corev1.NodeAffinity) NodeSetsSettings

func (*ElasticsearchOperator) Remove

func (*ElasticsearchOperator) Update

func (eo *ElasticsearchOperator) Update(k8syml interface{}) error

Update secret The update will not be performed, and a restart is required due to the update of the static password. (You can improve the multi-user authentication through the user management machine with perfect service)

func (*ElasticsearchOperator) Validate

Validate Verify the legality of the ServiceGroup transformed from diceyml

type ElasticsearchSpec

type ElasticsearchSpec struct {
	Http     HttpSettings       `json:"http,omitempty"`
	Version  string             `json:"version,omitempty"`
	Image    string             `json:"image,omitempty"`
	NodeSets []NodeSetsSettings `json:"nodeSets,omitempty"`
}

type HttpSettings

type HttpSettings struct {
	Tls TlsSettings `json:"tls,omitempty"`
}

HttpSettings

type NodeSetsSettings

type NodeSetsSettings struct {
	Name                 string                `json:"name,omitempty"`
	Count                int                   `json:"count,omitempty"`
	Config               map[string]string     `json:"config,omitempty"`
	PodTemplate          PodTemplateSettings   `json:"podTemplate,omitempty"`
	VolumeClaimTemplates []VolumeClaimSettings `json:"volumeClaimTemplates,omitempty"`
}

NodeSetsSettings

type PodSpecSettings

type PodSpecSettings struct {
	Affinity   *corev1.Affinity     `json:"affinity,omitempty"`
	Containers []ContainersSettings `json:"containers,omitempty"`
}

type PodTemplateSettings

type PodTemplateSettings struct {
	Spec PodSpecSettings `json:"spec,omitempty"`
}

type SelfSignedCertificateSettings

type SelfSignedCertificateSettings struct {
	Disabled bool `json:"disabled,omitempty"`
}

type TlsSettings

type TlsSettings struct {
	SelfSignedCertificate SelfSignedCertificateSettings `json:"selfSignedCertificate,omitempty"`
}

type VolumeClaimSettings

type VolumeClaimSettings struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VolumeClaimSpecSettings `json:"spec,omitempty"`
}

VolumeClaimSettings for ElasticsearchSpec NodeSetsSettings

type VolumeClaimSpecSettings

type VolumeClaimSpecSettings struct {
	AccessModes      []string                    `json:"accessModes,omitempty"`
	Resources        corev1.ResourceRequirements `json:"resources,omitempty"`
	StorageClassName string                      `json:"storageClassName,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL