#190 Fix run seed job agent on top of OpenShift
This commit is contained in:
parent
807d2e970b
commit
7ca7e58cc5
|
|
@ -46,6 +46,9 @@ const (
|
||||||
|
|
||||||
homeVolumeName = "home"
|
homeVolumeName = "home"
|
||||||
homeVolumePath = "/home/jenkins/agent"
|
homeVolumePath = "/home/jenkins/agent"
|
||||||
|
|
||||||
|
workspaceVolumeName = "workspace"
|
||||||
|
workspaceVolumePath = "/home/jenkins/workspace"
|
||||||
)
|
)
|
||||||
|
|
||||||
var seedJobGroovyScriptTemplate = template.Must(template.New(creatingGroovyScriptName).Parse(`
|
var seedJobGroovyScriptTemplate = template.Must(template.New(creatingGroovyScriptName).Parse(`
|
||||||
|
|
@ -420,6 +423,10 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
||||||
Name: homeVolumeName,
|
Name: homeVolumeName,
|
||||||
MountPath: homeVolumePath,
|
MountPath: homeVolumePath,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: workspaceVolumeName,
|
||||||
|
MountPath: workspaceVolumePath,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -430,6 +437,12 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
||||||
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: workspaceVolumeName,
|
||||||
|
VolumeSource: corev1.VolumeSource{
|
||||||
|
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue