mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/elasticsearch] Update to 6.8.6 + Fix plugin install initcontainer which would fail if plugin already exists. (#20630)
* [stable/elasticsearch] Fix plugin install initcontainer which would fail if plugin already exists. This happens when Node reboots and keeps emptyDir, or if elasticsearch image already contains plugin. Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr> * [stable/elasticsearch] Update to 6.8.6. Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
name: elasticsearch
|
||||
home: https://www.elastic.co/products/elasticsearch
|
||||
version: 1.32.2
|
||||
appVersion: 6.8.2
|
||||
version: 1.32.3
|
||||
appVersion: 6.8.6
|
||||
description: Flexible and powerful open source, distributed real-time search and analytics
|
||||
engine.
|
||||
icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg
|
||||
|
||||
@@ -97,7 +97,13 @@ plugin installer template
|
||||
- "-c"
|
||||
- |
|
||||
{{- range .Values.cluster.plugins }}
|
||||
/usr/share/elasticsearch/bin/elasticsearch-plugin install -b {{ . }}
|
||||
PLUGIN_NAME="{{ . }}"
|
||||
echo "Installing $PLUGIN_NAME..."
|
||||
if /usr/share/elasticsearch/bin/elasticsearch-plugin list | grep "$PLUGIN_NAME" > /dev/null; then
|
||||
echo "Plugin $PLUGIN_NAME already exists, skipping."
|
||||
else
|
||||
/usr/share/elasticsearch/bin/elasticsearch-plugin install -b $PLUGIN_NAME
|
||||
fi
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/elasticsearch/plugins/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Default values for elasticsearch.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
appVersion: "6.8.2"
|
||||
appVersion: "6.8.6"
|
||||
|
||||
## Define serviceAccount names for components. Defaults to component's fully qualified name.
|
||||
##
|
||||
@@ -42,7 +42,7 @@ securityContext:
|
||||
|
||||
image:
|
||||
repository: "docker.elastic.co/elasticsearch/elasticsearch-oss"
|
||||
tag: "6.8.2"
|
||||
tag: "6.8.6"
|
||||
pullPolicy: "IfNotPresent"
|
||||
# If specified, use these secrets to access the image
|
||||
# pullSecrets:
|
||||
|
||||
Reference in New Issue
Block a user