-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.109 with kubernetes-cd-plugin
I would like a way to provide the kubernetesDeploy method with credentials that are stored in Jenkins' credentials store. Right now, I am using the SSH credentials type, which requires that I manually lay down a kubeconfig file somewhere that contains sensitive information.
This is what I'm imagining:
kubernetesCredentials: [
clientCertificateCredentialsId: '<credentials-id-for-client-certificate>',
clientKeyCredentialsId: '<credentials-id-for-client-key>',
serverUrl: '<server-url>',
certificateAuthorityData: '<certificate-authority-data>'
]
Am I missing something? Is there a way to achieve this now, that I'm missing.
I see the point. Currently the credentials are exposed in the kubernetesDeploy call if we are using Pipeline. It would be better the kubeconfig related things are stored in the Jenkins credentials store. They are less likely to be changed from deployments to deployments. The pipeline just reference them through the credentials ID.
I will start implement this.