mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-03 22:51:09 +02:00
Quick fix ports in jenkins.go
This bug makes it impossible to use NodePort instead of port.
This commit is contained in:
committed by
Paweł Prażak
parent
a612939f33
commit
b75e8de596
@@ -99,7 +99,7 @@ func (j JenkinsAPIConnectionSettings) BuildJenkinsAPIUrl(serviceName string, ser
|
||||
|
||||
// Validate validates jenkins API connection settings
|
||||
func (j JenkinsAPIConnectionSettings) Validate() error {
|
||||
if j.Port >= 0 && j.UseNodePort {
|
||||
if j.Port > 0 && j.UseNodePort {
|
||||
return errors.New("can't use service port and nodePort both. Please use port or nodePort")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user