Add support for namespaces in jenkins client

This commit is contained in:
Jakub Al-Khalili 2019-07-15 16:47:12 +02:00
parent f710704aba
commit c9f39e9de4
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func BuildJenkinsAPIUrl(namespace, serviceName string, portNumber int32, local,
} }
// Connect through Kubernetes service, operator has to be run inside cluster // Connect through Kubernetes service, operator has to be run inside cluster
return fmt.Sprintf("http://%s:%d", serviceName, portNumber), nil return fmt.Sprintf("http://%s.%s:%d", serviceName, namespace, portNumber), nil
} }
// New creates Jenkins API client // New creates Jenkins API client