-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: kubernetes-cd-plugin
-
None
-
Environment: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.