forked from openshift-qe/v3-testfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-stop-failed-deployment.json
106 lines (106 loc) · 3.44 KB
/
test-stop-failed-deployment.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
105
106
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"creationTimestamp": null,
"labels": {
"template": "test-stop-failed-deployment"
},
"name": "test-stop-failed-deployment"
},
"spec": {
"replicas": 1,
"selector": {
"name": "test-stop-failed-deployment"
},
"strategy": {
"recreateParams": {
"post": {
"execNewPod": {
"command": [
"/bin/false"
],
"containerName": "test-stop-failed-deployment",
"env": [
{
"name": "CUSTOM_VAR2",
"value": "custom_value2"
}
]
},
"failurePolicy": "Ignore"
},
"pre": {
"execNewPod": {
"command": [
"/bin/true"
],
"containerName": "test-stop-failed-deployment",
"env": [
{
"name": "CUSTOM_VAR1",
"value": "custom_value1"
}
]
},
"failurePolicy": "Retry"
}
},
"resources": {},
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "test-stop-failed-deployment"
}
},
"spec": {
"containers": [
{
"capabilities": {},
"env": [
{
"name": "MYSQL_USER",
"value": "userDI3"
},
{
"name": "MYSQL_PASSWORD",
"value": "I17R53ta"
},
{
"name": "MYSQL_DATABASE",
"value": "root"
}
],
"image": "openshift/mysql-55-centos7:latest",
"imagePullPolicy": "Always",
"name": "test-stop-failed-deployment",
"ports": [
{
"containerPort": 3306,
"protocol": "TCP"
}
],
"resources": {},
"securityContext": {
"capabilities": {},
"privileged": false
},
"terminationMessagePath": "/dev/termination-log"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"serviceAccount": ""
}
},
"triggers": [
{
"type": "ConfigChange"
}
]
},
"status": {}
}