Browse Source

updating workflow

pull/45/head
Petti, Ken 5 years ago
parent
commit
c742993083
  1. 23
      helm-socks-frontend/templates/tests/failure.yaml
  2. 2
      helm-socks-frontend/templates/tests/workflow.yaml

23
helm-socks-frontend/templates/tests/failure.yaml

@ -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

2
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

Loading…
Cancel
Save