package
2.16.1
Repository: https://github.com/elastic/cloud-on-k8s.git
Documentation: pkg.go.dev

# Functions

ClusterFromResourceLabels returns the NamespacedName of the Elasticsearch associated to the given resource, by retrieving its name from the resource labels.
ExtractVersion extracts the Elasticsearch version from the given labels.
No description provided by the author
IsDataNode returns true if the pod has the data node label.
IsDataNodeSet returns true if the given StatefulSet specifies data nodes.
IsIngestNodeSet returns true if the given StatefulSet specifies ingest nodes.
IsMasterNode returns true if the pod has the master node label.
IsMasterNodeSet returns true if the given StatefulSet specifies master nodes.
NewConfigLabels returns labels to apply for an Elasticsearch Config secret.
NewLabels constructs a new set of labels from an Elasticsearch definition.
NewLabelSelectorForElasticsearch returns a labels.Selector that matches the labels as constructed by NewLabels.
NewLabelSelectorForElasticsearchClusterName returns a labels.Selector that matches the labels as constructed by NewLabels for the provided cluster name.
NewLabelSelectorForStatefulSetName returns a labels.Selector that matches the labels set on resources managed for a given StatefulSet in a cluster.
NewPodLabels returns labels to apply for a new Elasticsearch pod.
No description provided by the author

# Constants

ClusterNameLabelName used to represent a cluster in k8s resources.
ClusterNamespaceLabelName used to represent a cluster in k8s resources.
No description provided by the author
NodeTypesDataColdLabelName is a label set to true on nodes with the data_cold role.
NodeTypesDataContentLabelName is a label set to true on nodes with the data_content role.
NodeTypesDataFrozenLabelName is a label set to true on nodes with the data_frozen role.
NodeTypesDataHotLabelName is a label set to true on nodes with the data_hot role.
NodeTypesDataLabelName is a label set to true on nodes with the data role.
NodeTypesDataWarmLabelName is a label set to true on nodes with the data_warm role.
NodeTypesIngestLabelName is a label set to true on nodes with the ingest role.
NodeTypesMasterLabelName is a label set to true on nodes with the master role.
NodeTypesMLLabelName is a label set to true on nodes with the ml role.
NodeTypesRemoteClusterClientLabelName is a label set to true on nodes with the remote_cluster_client role.
NodeTypesTransformLabelName is a label set to true on nodes with the transform role.
NodeTypesVotingOnlyLabelName is a label set to true on voting-only master-eligible nodes.
PodNameLabelName used to store the name of the pod on other objects.
StatefulSetNameLabelName used to store the name of the statefulset.
Type represents the Elasticsearch type.
VersionLabelName used to store the Elasticsearch version of the resource.

# Variables

NonMasterRoles are all Elasticsearch node roles except master or voting-only.