[update] kibana : add install hook and dependencies

The flush-kibana-metadata job was causing issue in loading the kibana
dashboard due to conflict in order this is run. Adding dependencies to avoid
running jobs simultaneously.

Change-Id: If5a2564a8b6a16fb0dbd6a93f2e6e02d91f394dc
This commit is contained in:
Radhika Pai 2020-06-02 15:27:02 -05:00 committed by RADHIKA PAI
parent c0aa66a9f1
commit e81583ac3e
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: