Skip to content

Commit

Permalink
[YUNIKORN-2135] Add integration test code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 committed Nov 22, 2023
1 parent 9f4f71d commit bc26a58
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions helm-charts/yunikorn/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if .Values.enableGoCoverDir }}
- name: GOCOVERDIR
value: /go-cover-dir
volumeMounts:
- name: go-cover-dir
mountPath: /go-cover-dir/
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: yunikorn-scheduler-web
Expand All @@ -104,3 +111,10 @@ spec:
protocol: TCP
resources:
{{- toYaml .Values.web.resources | nindent 12 }}
{{- if .Values.enableGoCoverDir }}
volumes:
- name: go-cover-dir
hostPath:
path: /go-cover-dir/
type: DirectoryOrCreate
{{- end }}
2 changes: 2 additions & 0 deletions helm-charts/yunikorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,5 @@ enableSchedulerPlugin: false

podLabels: {}
podAnnotations: {}

enableGoCoverDir: false

0 comments on commit bc26a58

Please sign in to comment.