From 422a6845c7e39c01c987eaf02f6a9dbbae836698 Mon Sep 17 00:00:00 2001 From: bravof <fbravo@whitestack.com> Date: Tue, 7 Jul 2020 15:59:54 -0400 Subject: [PATCH] fix(initcontainers): getting rid of cleanup container and changing it by a readinessprobe --- .../eechart/charts/snmpexporter/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml index 19ef0d9c..a7b0bdf4 100644 --- a/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml +++ b/snmp_ee_vnf/helm-charts/eechart/charts/snmpexporter/templates/deployment.yaml @@ -45,6 +45,12 @@ spec: mountPath: /etc/snmp_exporter - name: internal-comm mountPath: /etc/internalcomm + readinessProbe: + exec: + command: + - /bin/sh + - -c + - if [ -f "/etc/snmp_exporter/generator.yml" ]; then touch /internalcomm/ok.init; fi livenessProbe: exec: command: -- GitLab