mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-22 07:02:58 +02:00
Intermediate Commit for transition from Pod to Deployment based Jenkins Controller
Allows for using the annotation jenkins.io/use-deployment and setting the value to true makes the operator use a Deployment instead of Pod for serving Jenkins. This is part of a temporary feature and has to be committed to avoid bigger PRs.
This commit is contained in:
+2
-2
@@ -156,7 +156,7 @@ func createJenkinsCR(t *testing.T, name, namespace string, seedJob *[]v1alpha2.S
|
||||
|
||||
func createJenkinsAPIClientFromServiceAccount(t *testing.T, jenkins *v1alpha2.Jenkins, jenkinsAPIURL string) (jenkinsclient.Jenkins, error) {
|
||||
t.Log("Creating Jenkins API client from service account")
|
||||
podName := resources.GetJenkinsMasterPodName(*jenkins)
|
||||
podName := resources.GetJenkinsMasterPodName(jenkins)
|
||||
|
||||
clientSet, err := kubernetes.NewForConfig(framework.Global.KubeConfig)
|
||||
if err != nil {
|
||||
@@ -197,7 +197,7 @@ func verifyJenkinsAPIConnection(t *testing.T, jenkins *v1alpha2.Jenkins, namespa
|
||||
}, &service)
|
||||
require.NoError(t, err)
|
||||
|
||||
podName := resources.GetJenkinsMasterPodName(*jenkins)
|
||||
podName := resources.GetJenkinsMasterPodName(jenkins)
|
||||
port, cleanUpFunc, waitFunc, portForwardFunc, err := setupPortForwardToPod(t, namespace, podName, int(constants.DefaultHTTPPortInt32))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user