jenkinsci / kubernetes-cd-plugin

A Jenkins plugin to deploy to Kubernetes cluster
MIT License
140 stars 72 forks source link

Support kubernetes credentials provider #126

Closed topikachu closed 1 year ago

topikachu commented 4 years ago

Add an OptionalExtension to support Kubernetes credentials provider plugin. With this extension, the user can use a Kubernetes secret to save the kubeconfig content.

I have to upgrade the Jenkins and some plugins version to run the tests because of the kubernetes credentials provider.

The kubernetes credentials provider plugin is optional, so this change doesn't affect the users without it.

I test the code on my Jenkins instance with and without kubernetes credentials provider by both pipeline and freestyle jobs. All jobs work as expected without error.

I will file a new pull request about the document after this one is accepted.

Thanks

topikachu commented 4 years ago

@gavinfish Would you please take a look at my PR?

topikachu commented 4 years ago

Can anybody take a look of my change?