Fix run operator with minikube
This commit is contained in:
parent
01da21cdf8
commit
d76a2b1906
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -788,7 +788,7 @@ func (r *ReconcileJenkinsBaseConfiguration) ensureJenkinsClient(meta metav1.Obje
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
r.logger.V(log.VDebug).Info(fmt.Sprintf("Jenkins API URL %s", jenkinsURL))
|
||||
r.logger.V(log.VDebug).Info(fmt.Sprintf("Jenkins API URL '%s'", jenkinsURL))
|
||||
|
||||
credentialsSecret := &corev1.Secret{}
|
||||
err = r.k8sClient.Get(context.TODO(), types.NamespacedName{Name: resources.GetOperatorCredentialsSecretName(r.jenkins), Namespace: r.jenkins.ObjectMeta.Namespace}, credentialsSecret)
|
||||
|
|
|
|||
Loading…
Reference in New Issue