refactor service name and service fqdn fuctions

This commit is contained in:
Seshu Kumar Alluvada
2020-03-24 00:30:24 -04:00
parent 0082392dbf
commit d71d105986
5 changed files with 14 additions and 26 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func createJenkinsAPIClient(jenkins *v1alpha2.Jenkins, hostname string, port int
err := framework.Global.Client.Get(context.TODO(), types.NamespacedName{
Namespace: jenkins.Namespace,
Name: resources.GetJenkinsHTTPServiceName(jenkins),
Name: resources.GetJenkinsServiceName(jenkins, "http"),
}, &service)
if err != nil {