mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-09-30 21:28:44 +02:00
fix the seed job service names to use FQDN
This commit is contained in:
@@ -402,9 +402,8 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
||||
Env: []corev1.EnvVar{
|
||||
{
|
||||
Name: "JENKINS_TUNNEL",
|
||||
Value: fmt.Sprintf("%s.%s:%d",
|
||||
resources.GetJenkinsSlavesServiceName(jenkins),
|
||||
jenkins.ObjectMeta.Namespace,
|
||||
Value: fmt.Sprintf("%s:%d",
|
||||
resources.GetJenkinsSlavesServiceFQDN(jenkins),
|
||||
jenkins.Spec.SlaveService.Port),
|
||||
},
|
||||
{
|
||||
@@ -417,9 +416,8 @@ func agentDeployment(jenkins *v1alpha2.Jenkins, namespace string, agentName stri
|
||||
},
|
||||
{
|
||||
Name: "JENKINS_URL",
|
||||
Value: fmt.Sprintf("http://%s.%s:%d",
|
||||
resources.GetJenkinsHTTPServiceName(jenkins),
|
||||
jenkins.ObjectMeta.Namespace,
|
||||
Value: fmt.Sprintf("http://%s:%d",
|
||||
resources.GetJenkinsHTTPServiceFQDN(jenkins),
|
||||
jenkins.Spec.Service.Port,
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user