Merge "[update] kibana : add install hook and dependencies"

This commit is contained in:
Zuul 2020-06-04 00:53:19 +00:00 committed by Gerrit Code Review
commit b62a46336c
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ spec:
labels:
{{ tuple $envAll "kibana" "flush_kibana_metadata" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
"helm.sh/hook": post-delete, pre-upgrade
"helm.sh/hook": pre-install, post-delete, pre-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}

View File

@ -161,17 +161,21 @@ dependencies:
- endpoint: internal
service: local_image_registry
kibana:
jobs:
- flush-kibana-metadata
services:
- endpoint: internal
service: elasticsearch
register_kibana_indexes:
jobs:
- flush-kibana-metadata
services:
- endpoint: internal
service: kibana
flush_kibana_metadata:
services:
- endpoint: internal
service: kibana
service: elasticsearch
jobs:
flush_kibana_metadata: