1 changed files with 35 additions and 35 deletions
			
			
		| @ -1,37 +1,37 @@ | |||
| apiVersion: argoproj.io/v1alpha1 | |||
| kind: Workflow | |||
| metadata: | |||
|   name: "{{ include "helm-socks-frontend.name" . }}-workflow" | |||
|   annotations: | |||
|     argocd.argoproj.io/hook: PostSync | |||
|     argocd.argoproj.io/hook-delete-policy: BeforeHookCreation | |||
| spec: | |||
|   entrypoint: check-service-up | |||
|   onExit: exit-handler | |||
|   templates: | |||
|   - name: check-service-up | |||
|     container: | |||
|       image: curlimages/curl | |||
|       command: ['curl'] | |||
|       args: | |||
|         - '-v' | |||
|         - '-X' | |||
|         - 'GET' | |||
|         - 'helm-socks-frontend-int.sock-shop-front-end' | |||
| # apiVersion: argoproj.io/v1alpha1 | |||
| # kind: Workflow | |||
| # metadata: | |||
| #   name: "{{ include "helm-socks-frontend.name" . }}-workflow" | |||
| #   annotations: | |||
| #     argocd.argoproj.io/hook: PostSync | |||
| #     argocd.argoproj.io/hook-delete-policy: BeforeHookCreation | |||
| # spec: | |||
| #   entrypoint: check-service-up | |||
| #   onExit: exit-handler | |||
| #   templates: | |||
| #   - name: check-service-up | |||
| #     container: | |||
| #       image: curlimages/curl | |||
| #       command: ['curl'] | |||
| #       args: | |||
| #         - '-v' | |||
| #         - '-X' | |||
| #         - 'GET' | |||
| #         - 'helm-socks-frontend-int.sock-shop-front-end' | |||
| 
 | |||
|   - name: exit-handler | |||
|     steps: | |||
|     - - name: notify | |||
|         template: send-status-webhook | |||
| #   - name: exit-handler | |||
| #     steps: | |||
| #     - - name: notify | |||
| #         template: send-status-webhook | |||
| 
 | |||
|   - name: send-status-webhook | |||
|     container: | |||
|       image: curlimages/curl | |||
|       command: ['curl'] | |||
|       args: | |||
|         - '-v' | |||
|         - '-X' | |||
|         - 'POST' | |||
|         - '-d' | |||
|         - '{"status":"{{ `{{workflow.status}}` }}"}' | |||
|         - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' | |||
| #   - name: send-status-webhook | |||
| #     container: | |||
| #       image: curlimages/curl | |||
| #       command: ['curl'] | |||
| #       args: | |||
| #         - '-v' | |||
| #         - '-X' | |||
| #         - 'POST' | |||
| #         - '-d' | |||
| #         - '{"status":"{{ `{{workflow.status}}` }}"}' | |||
| #         - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' | |||
|  | |||
					Loading…
					
					
				
		Reference in new issue