File tree 6 files changed +31
-13
lines changed
installer/chart/volcano/templates
6 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -124,4 +124,4 @@ kubernetes.tar.gz
124
124
* .pyc
125
125
126
126
# e2e log files
127
- / hack / * .log
127
+ * .log
Original file line number Diff line number Diff line change 31
31
- make cli
32
32
- make docker
33
33
- make e2e-test-kind
34
+ after_failure :
35
+ # Echo logs and upload
36
+ - test -f volcano-admission.log && echo "******<<admission logs>>******" && cat volcano-admission.log
37
+ - test -f volcano-controller.log && echo "******<<controller logs>>******" && cat volcano-controller.log
38
+ - test -f volcano-scheduler.log && echo "******<<scheduler logs>>******" && cat volcano-scheduler.log
Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ function uninstall-volcano {
74
74
helm delete integration --purge --kubeconfig ${KUBECONFIG}
75
75
}
76
76
77
+ function generate-log {
78
+ echo " Generating volcano log files"
79
+ kubectl logs -lapp=volcano-admission -n kube-system > volcano-admission.log
80
+ kubectl logs -lapp=volcano-controller -n kube-system > volcano-controller.log
81
+ kubectl logs -lapp=volcano-scheduler -n kube-system > volcano-scheduler.log
82
+ }
83
+
77
84
# clean up
78
85
function cleanup {
79
86
uninstall-volcano
@@ -118,3 +125,8 @@ install-volcano
118
125
# Run e2e test
119
126
cd ${VK_ROOT}
120
127
KUBECONFIG=${KUBECONFIG} go test ./test/e2e -v -timeout 30m
128
+
129
+ if [[ $? != 0 ]]; then
130
+ generate-log
131
+ exit 1
132
+ fi
Original file line number Diff line number Diff line change @@ -40,21 +40,18 @@ apiVersion: apps/v1
40
40
kind : Deployment
41
41
metadata :
42
42
labels :
43
- app : admission
44
- admission : " true"
43
+ app : volcano-admission
45
44
name : {{ .Release.Name }}-admission
46
45
namespace : {{ .Release.Namespace }}
47
46
spec :
48
47
replicas : 1
49
48
selector :
50
49
matchLabels :
51
- app : admission
52
- admission : " true"
50
+ app : volcano-admission
53
51
template :
54
52
metadata :
55
53
labels :
56
- app : admission
57
- admission : " true"
54
+ app : volcano-admission
58
55
spec :
59
56
serviceAccount : {{ .Release.Name }}-admission
60
57
{{ if .Values.basic.image_pull_secret }}
@@ -90,7 +87,7 @@ apiVersion: v1
90
87
kind : Service
91
88
metadata :
92
89
labels :
93
- test : admission
90
+ app : volcano- admission
94
91
name : {{ .Release.Name }}-admission-service
95
92
namespace : {{ .Release.Namespace }}
96
93
spec :
99
96
protocol : TCP
100
97
targetPort : 443
101
98
selector :
102
- admission : " true "
99
+ app : volcano-admission
103
100
sessionAffinity : None
Original file line number Diff line number Diff line change @@ -63,15 +63,17 @@ apiVersion: apps/v1
63
63
metadata :
64
64
name : {{ .Release.Name }}-controllers
65
65
namespace : {{ .Release.Namespace }}
66
+ labels :
67
+ app : volcano-controller
66
68
spec :
67
69
replicas : 1
68
70
selector :
69
71
matchLabels :
70
- vk-controllers : test
72
+ app : volcano-controller
71
73
template :
72
74
metadata :
73
75
labels :
74
- vk-controllers : test
76
+ app : volcano-controller
75
77
spec :
76
78
serviceAccount : {{ .Release.Name }}-controllers
77
79
{{ if .Values.basic.image_pull_secret }}
Original file line number Diff line number Diff line change @@ -84,15 +84,17 @@ apiVersion: apps/v1
84
84
metadata :
85
85
name : {{ .Release.Name }}-scheduler
86
86
namespace : {{ .Release.Namespace }}
87
+ labels :
88
+ app : volcano-scheduler
87
89
spec :
88
90
replicas : 1
89
91
selector :
90
92
matchLabels :
91
- vk-scheduler : test
93
+ app : volcano-scheduler
92
94
template :
93
95
metadata :
94
96
labels :
95
- vk-scheduler : test
97
+ app : volcano-scheduler
96
98
spec :
97
99
serviceAccount : {{ .Release.Name }}-scheduler
98
100
containers :
You can’t perform that action at this time.
0 commit comments