From 03ba47a0beab732672912a5fba381aa044de5bbd Mon Sep 17 00:00:00 2001 From: Sean Eagan Date: Wed, 27 May 2020 10:21:38 -0500 Subject: [PATCH] helm tests: Helm 2 support The `test-success` hook is supported by Helm 2 and 3. --- charts/podinfo/templates/tests/fail.yaml | 2 +- charts/podinfo/templates/tests/grpc.yaml | 2 +- charts/podinfo/templates/tests/jwt.yaml | 2 +- charts/podinfo/templates/tests/service.yaml | 2 +- charts/podinfo/templates/tests/timeout.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/podinfo/templates/tests/fail.yaml b/charts/podinfo/templates/tests/fail.yaml index f981f48..ef9df64 100644 --- a/charts/podinfo/templates/tests/fail.yaml +++ b/charts/podinfo/templates/tests/fail.yaml @@ -9,7 +9,7 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test + "helm.sh/hook": test-success "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled diff --git a/charts/podinfo/templates/tests/grpc.yaml b/charts/podinfo/templates/tests/grpc.yaml index 55f0323..9ed36ae 100644 --- a/charts/podinfo/templates/tests/grpc.yaml +++ b/charts/podinfo/templates/tests/grpc.yaml @@ -8,7 +8,7 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test + "helm.sh/hook": test-success "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled diff --git a/charts/podinfo/templates/tests/jwt.yaml b/charts/podinfo/templates/tests/jwt.yaml index 4b7debf..2f8786e 100644 --- a/charts/podinfo/templates/tests/jwt.yaml +++ b/charts/podinfo/templates/tests/jwt.yaml @@ -8,7 +8,7 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test + "helm.sh/hook": test-success "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled diff --git a/charts/podinfo/templates/tests/service.yaml b/charts/podinfo/templates/tests/service.yaml index bd81825..1550374 100644 --- a/charts/podinfo/templates/tests/service.yaml +++ b/charts/podinfo/templates/tests/service.yaml @@ -8,7 +8,7 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test + "helm.sh/hook": test-success "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled diff --git a/charts/podinfo/templates/tests/timeout.yaml b/charts/podinfo/templates/tests/timeout.yaml index 19e062d..05647d3 100644 --- a/charts/podinfo/templates/tests/timeout.yaml +++ b/charts/podinfo/templates/tests/timeout.yaml @@ -9,7 +9,7 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "podinfo.name" . }} annotations: - "helm.sh/hook": test + "helm.sh/hook": test-success "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded sidecar.istio.io/inject: "false" linkerd.io/inject: disabled