File tree 10 files changed +185
-0
lines changed
solutions/sync-hooks-waves/06-waves-and-hooks
10 files changed +185
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : cleanup-after-sync-
6
+ labels :
7
+ codefresh.io/cert : cleanup-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PostSync
10
+ argocd.argoproj.io/sync-wave : " 20"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-run
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 10"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : my-db-upgrade-
6
+ labels :
7
+ codefresh.io/cert : db-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PreSync
10
+ argocd.argoproj.io/sync-wave : " 10"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-run
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 10"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1
3
+ kind : Deployment
4
+ metadata :
5
+ name : simple-deployment
6
+ namespace : example06
7
+ spec :
8
+ replicas : 1
9
+ selector :
10
+ matchLabels :
11
+ app : trivial-go-web-app
12
+ template :
13
+ metadata :
14
+ labels :
15
+ app : trivial-go-web-app
16
+ spec :
17
+ containers :
18
+ - name : webserver-simple
19
+ image : docker.io/kostiscodefresh/gitops-simple-app:v1.0
20
+ ports :
21
+ - containerPort : 8080
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : disable-alerts-
6
+ labels :
7
+ codefresh.io/cert : disable-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PreSync
10
+ argocd.argoproj.io/sync-wave : " 20"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-run
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 10"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : enable-alerts-
6
+ labels :
7
+ codefresh.io/cert : enable-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PostSync
10
+ argocd.argoproj.io/sync-wave : " 30"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-message
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 3"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : grafana-notify-
6
+ labels :
7
+ codefresh.io/cert : grafana-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : Sync
10
+ argocd.argoproj.io/sync-wave : " -10"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-run
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 10"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Namespace
3
+ metadata :
4
+ name : example06
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : simple-service
5
+ namespace : example06
6
+ spec :
7
+ type : ClusterIP
8
+ selector :
9
+ app : trivial-go-web-app
10
+ ports :
11
+ - protocol : TCP
12
+ port : 80
13
+ targetPort : 8080
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : slack-notify-
6
+ labels :
7
+ codefresh.io/cert : slack-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PostSync
10
+ argocd.argoproj.io/sync-wave : " 30"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-message
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 3"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : Job
3
+ metadata :
4
+ namespace : example06
5
+ generateName : smoke-tests-
6
+ labels :
7
+ codefresh.io/cert : smoke-job
8
+ annotations :
9
+ argocd.argoproj.io/hook : PostSync
10
+ argocd.argoproj.io/sync-wave : " 10"
11
+ spec :
12
+ template :
13
+ spec :
14
+ containers :
15
+ - name : dummy-message
16
+ image : alpine
17
+ command :
18
+ - " sleep"
19
+ - " 3"
20
+ restartPolicy : Never
21
+ backoffLimit : 2
You can’t perform that action at this time.
0 commit comments