From c742993083a81acf4d6ae286b0517110af1afc4d Mon Sep 17 00:00:00 2001 From: "Petti, Ken" Date: Mon, 30 Mar 2020 10:04:51 -0400 Subject: [PATCH] updating workflow --- .../templates/tests/failure.yaml | 23 ------------------- .../templates/tests/workflow.yaml | 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 helm-socks-frontend/templates/tests/failure.yaml diff --git a/helm-socks-frontend/templates/tests/failure.yaml b/helm-socks-frontend/templates/tests/failure.yaml deleted file mode 100644 index 4689e25..0000000 --- a/helm-socks-frontend/templates/tests/failure.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# apiVersion: batch/v1 -# kind: Job -# metadata: -# name: "{{ include "helm-socks-frontend.name" . }}-credentials-test-failure" -# annotations: -# argocd.argoproj.io/hook: SyncFail -# argocd.argoproj.io/hook-delete-policy: HookSucceeded -# spec: -# template: -# spec: -# containers: -# - name: check-service-up -# image: appropriate/curl -# command: -# - 'curl' -# - '-X' -# - 'POST' -# - '-H "Content-Type: application/json"' -# - '-d "{"status":"failure"}"' -# - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' -# restartPolicy: Never - - diff --git a/helm-socks-frontend/templates/tests/workflow.yaml b/helm-socks-frontend/templates/tests/workflow.yaml index 9d70b93..0d1424a 100644 --- a/helm-socks-frontend/templates/tests/workflow.yaml +++ b/helm-socks-frontend/templates/tests/workflow.yaml @@ -4,7 +4,7 @@ metadata: name: "{{ include "helm-socks-frontend.name" . }}-workflow" annotations: argocd.argoproj.io/hook: PostSync - argocd.argoproj.io/hook-delete-policy: HookSucceeded + argocd.argoproj.io/hook-delete-policy: BeforeHookCreation spec: entrypoint: check-service-up onExit: exit-handler