github.com/argoproj/argo-cd@v1.8.7/test/e2e/testdata/multi-namespace-hook/multi-namespace-hook.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Namespace 4 metadata: 5 name: test-multi-ns-hook-second 6 7 --- 8 apiVersion: apps/v1 9 kind: Deployment 10 metadata: 11 name: nginx-deployment 12 labels: 13 app: nginx 14 spec: 15 selector: 16 matchLabels: 17 app: nginx 18 template: 19 metadata: 20 labels: 21 app: nginx 22 spec: 23 containers: 24 - name: nginx 25 image: nginx:1.17.4-alpine 26 imagePullPolicy: IfNotPresent 27 ports: 28 - containerPort: 80 29 30 --- 31 apiVersion: v1 32 kind: Pod 33 metadata: 34 name: my-hook 35 annotations: 36 argocd.argoproj.io/hook: PostSync 37 argocd.argoproj.io/hook-delete-policy: HookSucceeded 38 spec: 39 restartPolicy: Never 40 containers: 41 - name: main 42 image: alpine:3.10.2 43 imagePullPolicy: IfNotPresent 44 command: [sh, -c, "sleep 10"] 45 46 --- 47 apiVersion: v1 48 kind: Pod 49 metadata: 50 name: my-hook 51 namespace: test-multi-ns-hook-second 52 annotations: 53 argocd.argoproj.io/hook: PostSync 54 argocd.argoproj.io/hook-delete-policy: HookSucceeded 55 spec: 56 restartPolicy: Never 57 containers: 58 - name: main 59 image: alpine:3.10.2 60 imagePullPolicy: IfNotPresent 61 command: [sh, -c, "sleep 10"]