From b4ea2afc19e8b3d5d7f2b9f640e7dfc5e1c97985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ortiz=20V=C3=A1squez?= Date: Mon, 27 Jan 2020 14:57:09 -0500 Subject: [PATCH] Updated test hook, and hook deleting policy for test pods --- charts/podinfo/templates/tests/grpc.yaml | 3 ++- charts/podinfo/templates/tests/jwt.yaml | 3 ++- charts/podinfo/templates/tests/service.yaml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/podinfo/templates/tests/grpc.yaml b/charts/podinfo/templates/tests/grpc.yaml index 444155c..55f0323 100644 --- a/charts/podinfo/templates/tests/grpc.yaml +++ b/charts/podinfo/templates/tests/grpc.yaml @@ -8,7 +8,8 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test-success + "helm.sh/hook": test + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled appmesh.k8s.aws/sidecarInjectorWebhook: disabled diff --git a/charts/podinfo/templates/tests/jwt.yaml b/charts/podinfo/templates/tests/jwt.yaml index 7a8fa1e..1721e34 100644 --- a/charts/podinfo/templates/tests/jwt.yaml +++ b/charts/podinfo/templates/tests/jwt.yaml @@ -8,7 +8,8 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test-success + "helm.sh/hook": test + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled appmesh.k8s.aws/sidecarInjectorWebhook: disabled diff --git a/charts/podinfo/templates/tests/service.yaml b/charts/podinfo/templates/tests/service.yaml index 37f35cb..861b555 100644 --- a/charts/podinfo/templates/tests/service.yaml +++ b/charts/podinfo/templates/tests/service.yaml @@ -8,7 +8,8 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test-success + "helm.sh/hook": test + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled appmesh.k8s.aws/sidecarInjectorWebhook: disabled