#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"
|
||||
homeVolumePath = "/home/jenkins/agent"
|
||||
|
||||
workspaceVolumeName = "workspace"
|
||||
workspaceVolumePath = "/home/jenkins/workspace"
|
||||
)
|
||||
|
||||
var seedJobGroovyScriptTemplate = template.Must(template.New(creatingGroovyScriptName).Parse(`
|
||||
|
|
@ -420,6 +423,10 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
|||
Name: homeVolumeName,
|
||||
MountPath: homeVolumePath,
|
||||
},
|
||||
{
|
||||
Name: workspaceVolumeName,
|
||||
MountPath: workspaceVolumePath,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -430,6 +437,12 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
|||
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: workspaceVolumeName,
|
||||
VolumeSource: corev1.VolumeSource{
|
||||
EmptyDir: &corev1.EmptyDirVolumeSource{},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
|
|
|
|||
Loading…
Reference in New Issue