Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-60798] Current context should be set #19

Merged
merged 1 commit into from Feb 6, 2020

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Feb 1, 2020

JENKINS-60798

Also, only set skipTlsVerify if it is actually true

Also, only set skipTlsVerify if it is actually true
@maxlaverse
Copy link

Hi @Vlatombe!
I read JENKINS-60798 but I don't understand everything. The user reported that insecure-skip-tls-verify is not set in his kubeconfig. If skipTlsVerify=true is provided to the KubernetesAuthConfig constructor, the value should be set to true in the generated configuration. How does it help to not set it when it's false ?

Could it be that this single line is actually the solution to the problem, by initializing KubernetesAuthConfig with skipTlsVerify=true even if getCaCertificate() is non null but empty ?

The change for setting the current context makes sense. Is there a way to find out if there are any other plugins than kubernetes and kubernetes-cli that use kubernetes-credentials ? If so I would check if this change of default can break anything.

@Vlatombe
Copy link
Member Author

Vlatombe commented Feb 4, 2020

Hi @maxlaverse, I think there were two issues:

@maxlaverse
Copy link

Alright ! I'm not convinced by the reason to change the skipTlsVerify change but I don't think it will hurt.

@maxlaverse maxlaverse merged commit 53ff2cc into jenkinsci:master Feb 6, 2020
@maxlaverse
Copy link

Released in 0.6.1 @Vlatombe

@Vlatombe Vlatombe deleted the JENKINS-60798 branch February 7, 2020 08:57
@Vlatombe
Copy link
Member Author

Vlatombe commented Feb 7, 2020

@maxlaverse Thanks! Though I don't see 0.6.1 in artifactory yet. And the git history looks strange, the release commit is missing.

@maxlaverse
Copy link

I must have messed something up :/
Since I don't have my laptop to check the local state, I just released another minor version:

    [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ kubernetes-credentials ---
    Uploading to maven.jenkins-ci.org: https://repo.jenkins-ci.org/releases/org/jenkinsci/plugins/kubernetes-credentials/0.6.2/kubernetes-credentials-0.6.2.hpi
    Uploaded to maven.jenkins-ci.org: https://repo.jenkins-ci.org/releases/org/jenkinsci/plugins/kubernetes-credentials/0.6.2/kubernetes-credentials-0.6.2.hpi (34 kB at 22 kB/s)
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants