|  | @ -6,37 +6,39 @@ metadata: | 
			
		
	
		
		
			
				
					|  |  |     argocd.argoproj.io/hook: PostSync |  |  |     argocd.argoproj.io/hook: PostSync | 
			
		
	
		
		
			
				
					|  |  |     # argocd.argoproj.io/hook-delete-policy: HookSucceeded |  |  |     # argocd.argoproj.io/hook-delete-policy: HookSucceeded | 
			
		
	
		
		
			
				
					|  |  | spec: |  |  | spec: | 
			
		
	
		
		
			
				
					
					|  |  |   entrypoint: curl |  |  |   entrypoint: check-service-up | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |   onExit: exit-handler # invoke the whalesay template |  |  |   onExit: exit-handler | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |   templates: |  |  |   templates: | 
			
		
	
		
		
			
				
					
					|  |  |   - name: curl              # name of the template |  |  |   - name: check-service-up | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     container: |  |  |     container: | 
			
		
	
		
		
			
				
					|  |  |       image: curlimages/curl |  |  |       image: curlimages/curl | 
			
		
	
		
		
			
				
					
					|  |  |       command: [curl] |  |  |       command: ['curl'] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       args: ["--url", "helm-socks-frontend-int.sock-shop-front-end"] |  |  |       args: | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         - '-v' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - '-X' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - 'GET' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - 'helm-socks-frontend-int.sock-shop-front-end' | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |   - name: exit-handler |  |  |   - name: exit-handler | 
			
		
	
		
		
			
				
					|  |  |     steps: |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |     - - name: notify |  |  |     - - name: notify | 
			
		
	
		
		
			
				
					
					|  |  |         template: send-email |  |  |         template: send-status-webhook | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       - name: celebrate |  |  |         arguments: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         template: celebrate |  |  |           parameters: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         when: "{{ `{{workflow.status}}` }} == Succeeded" |  |  |           - name: status | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       - name: cry |  |  |             value: "{{ `{{ workflow.status }}` }}" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         template: cry |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         when: "{{ `{{workflow.status}}` }} != Succeeded" |  |  |   - name: send-status-webhook | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |   - name: send-email |  |  |     inputs: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     container: |  |  |       parameters: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       image: alpine:latest |  |  |       - name: status | 
			
				
				
			
		
	
		
		
			
				
					|  |  |       command: [sh, -c] |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       args: ["echo send e-mail: {{ `{{workflow.name}} {{workflow.status}}` }}"] |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   - name: celebrate |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     container: |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       image: alpine:latest |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       command: [sh, -c] |  |  |  | 
			
		
	
		
		
			
				
					|  |  |       args: ["echo hooray!"] |  |  |  | 
			
		
	
		
		
			
				
					|  |  |   - name: cry |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |     container: |  |  |     container: | 
			
		
	
		
		
			
				
					
					|  |  |       image: alpine:latest |  |  |       image: curlimages/curl | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       command: [sh, -c] |  |  |       command: ['curl'] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |       args: ["echo boohoo!"] |  |  |       args: | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         - '-v' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - '-X' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - 'POST' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - '-d' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - 'foo' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         - 'https://webhook.site/c1d94793-b1b1-424b-b412-3f429a6825bb' | 
			
		
	
	
		
		
			
				
					|  | 
 |