mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-04 07:01:16 +02:00
#190 Fix run seed job agent on top of OpenShift
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user