forked from OpsMx/gitops-hal-sample
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpipeline-redeploy-hal.json
104 lines (104 loc) · 2.76 KB
/
pipeline-redeploy-hal.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"keepWaitingPipelines": false,
"lastModifiedBy": "anonymous",
"limitConcurrent": true,
"spelEvaluator": "v4",
"stages": [
{
"account": "default",
"cloudProvider": "kubernetes",
"manifests": [
{
"apiVersion": "batch/v1",
"kind": "Job",
"metadata": {
"name": "hal-deploy-apply"
},
"spec": {
"backoffLimit": 10,
"template": {
"spec": {
"containers": [
{
"args": [
"export DAEMON_ENDPOINT=http://<NAMESPACE>-spinnaker-halyard:8064 && export HAL_COMMAND=\"hal --daemon-endpoint $DAEMON_ENDPOINT\" && until $HAL_COMMAND --ready; do sleep 10 ; done && $HAL_COMMAND deploy apply "
],
"command": [
"bash",
"-x",
"-c"
],
"image": "docker.io/devopsmx/ubi8-oes-operator-halyard:1.20.5",
"name": "deploy-apply"
}
],
"restartPolicy": "Never",
"securityContext": {
"fsGroup": 1000,
"runAsUser": 1000
},
"serviceAccount": "oes-spinnaker-halyard",
"serviceAccountName": "oes-spinnaker-halyard"
}
}
}
}
],
"moniker": {
"app": "testapp"
},
"name": "Deploy (Manifest)",
"namespaceOverride": "srini1",
"refId": "2",
"requisiteStageRefIds": [
"3"
],
"skipExpressionEvaluation": false,
"source": "text",
"trafficManagement": {
"enabled": false,
"options": {
"enableTraffic": false,
"services": []
}
},
"type": "deployManifest"
},
{
"account": "default",
"app": "testapp",
"cloudProvider": "kubernetes",
"location": "srini1",
"manifestName": "pod <NAMESPACE>-spinnaker-halyard-0",
"mode": "static",
"name": "Delete (Manifest)",
"options": {
"cascading": false
},
"refId": "3",
"requisiteStageRefIds": [],
"type": "deleteManifest"
},
{
"account": "default",
"app": "testapp",
"cloudProvider": "kubernetes",
"isNew": true,
"location": "srini1",
"manifestName": "job hal-deploy-apply",
"mode": "static",
"name": "Delete (Manifest)",
"options": {
"cascading": true,
"gracePeriodSeconds": null
},
"refId": "4",
"requisiteStageRefIds": [
"2"
],
"type": "deleteManifest"
}
],
"triggers": [],
"updateTs": "1601888251000"
}