mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-02 22:21:12 +02:00
Add support for namespaces in jenkins client
This commit is contained in:
@@ -98,7 +98,7 @@ func BuildJenkinsAPIUrl(namespace, serviceName string, portNumber int32, local,
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user