#239 Allow to set tolerations for the Jenkins master pod

This commit is contained in:
Tomasz Sęk
2019-12-31 09:13:09 +01:00
parent e1e21f92d6
commit 28a7c11f8c
3 changed files with 12 additions and 2 deletions
@@ -38,8 +38,6 @@ const (
httpPortName = "http"
slavePortName = "slavelistener"
// HTTPPortInt defines Jenkins master HTTP port
HTTPPortInt = 8080
)
func buildPodTypeMeta() metav1.TypeMeta {
@@ -309,6 +307,7 @@ func NewJenkinsMasterPod(objectMeta metav1.ObjectMeta, jenkins *v1alpha2.Jenkins
Volumes: append(GetJenkinsMasterPodBaseVolumes(jenkins), jenkins.Spec.Master.Volumes...),
SecurityContext: jenkins.Spec.Master.SecurityContext,
ImagePullSecrets: jenkins.Spec.Master.ImagePullSecrets,
Tolerations: jenkins.Spec.Master.Tolerations,
},
}
}