mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-22 07:02:58 +02:00
Fix run operator with minikube
This commit is contained in:
@@ -94,6 +94,10 @@ func BuildJenkinsAPIUrl(namespace, serviceName string, portNumber int32, local,
|
||||
// First is for http, the second one is for Jenkins slaves communication
|
||||
// see pkg/controller/jenkins/configuration/base/resources/service.go
|
||||
url := lines[0]
|
||||
if strings.HasPrefix(url, "* ") {
|
||||
return url[2:], nil
|
||||
}
|
||||
|
||||
return url, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user