-
Notifications
You must be signed in to change notification settings - Fork 8
/
go-1.18.yaml
38 lines (38 loc) · 1.05 KB
/
go-1.18.yaml
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
apiVersion: v1
kind: PodTemplate
metadata:
name: go18
namespace: kubesphere-devops-worker
labels:
jenkins.agent.pod: 'true'
annotations:
jenkins.agent.labels: "go"
inherit.from: "base"
devops.kubesphere.io/displayNameEN: 'go 1.18'
devops.kubesphere.io/descriptionEN: 'This is a PodTemplate for the Jenkins agent with go 1.18'
template:
metadata:
name: go18
spec:
volumes:
- name: docker
hostPath:
path: /var/run/docker.sock
- name: gocache
hostPath:
path: /var/data/jenkins_go_cache
- name: sonarcache
hostPath:
path: /var/data/jenkins_sonar_cache
containers:
- name: go
image: golang:1.18.0
command: ["cat"]
args: [""]
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock
- name: gocache
mountPath: /home/jenkins/go/pkg
- name: sonarcache
mountPath: /root/.sonar/cache