#257 Propagate NodeSelector,Tolerations and ImagePullSecrets to seed job agent from Jenkins pod

This commit is contained in:
Tomasz Sęk 2020-01-30 13:53:00 +01:00
parent 50c624d924
commit f50cf309cf
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
1 changed files with 3 additions and 0 deletions

View File

@ -385,6 +385,9 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
Spec: appsv1.DeploymentSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{
NodeSelector: jenkins.Spec.Master.NodeSelector,
Tolerations: jenkins.Spec.Master.Tolerations,
ImagePullSecrets: jenkins.Spec.Master.ImagePullSecrets,
Containers: []corev1.Container{
{
Name: "jnlp",