Update kibana index pattern creation
This change updates the kibana indices creation to repeatedly make call attempts until we get a 200 response back. Change-Id: Id0f012bda83913fc66c4ce105de97496043e487c
This commit is contained in:
parent
f31cfb2ef9
commit
2dcd38e4b0
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v7.1.0
|
||||
description: OpenStack-Helm Kibana
|
||||
name: kibana
|
||||
version: 0.1.11
|
||||
version: 0.1.12
|
||||
home: https://www.elastic.co/products/kibana
|
||||
sources:
|
||||
- https://github.com/elastic/kibana
|
||||
|
@ -20,6 +20,20 @@ curl -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
|
||||
-XPOST "${KIBANA_ENDPOINT}/api/saved_objects/index-pattern/{{ . }}*" -H 'kbn-xsrf: true' \
|
||||
-H 'Content-Type: application/json' -d \
|
||||
'{"attributes":{"title":"{{ . }}-*","timeFieldName":"@timestamp"}}'
|
||||
while true
|
||||
do
|
||||
if [[ $(curl -s -o /dev/null -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
|
||||
-w "%{http_code}" -XGET "${KIBANA_ENDPOINT}/api/saved_objects/index-pattern/{{ . }}*") == '200' ]]
|
||||
then
|
||||
break
|
||||
else
|
||||
curl -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
|
||||
-XPOST "${KIBANA_ENDPOINT}/api/saved_objects/index-pattern/{{ . }}*" -H 'kbn-xsrf: true' \
|
||||
-H 'Content-Type: application/json' -d \
|
||||
'{"attributes":{"title":"{{ . }}-*","timeFieldName":"@timestamp"}}'
|
||||
sleep 30
|
||||
fi
|
||||
done
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
@ -12,4 +12,5 @@ kibana:
|
||||
- 0.1.9 Revert removing Kibana indices before pod start up
|
||||
- 0.1.10 Update image defaults
|
||||
- 0.1.11 Added OCI registry authentication
|
||||
- 0.1.12 Added feedback http_code 200 for kibana indexes
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user