jenkinsci / kubernetes-cd-plugin

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

Add Helm Support #75

Closed gavinfish closed 3 years ago

gavinfish commented 5 years ago
ozbillwang commented 4 years ago

@gavinfish

could I ask for help?

Since this PR is not approved and merged yet, I want to use this k8s-cd plugin to manage Helm chart deployment now.

I can write some scripts to cover the deployment steps first, until this new feature is ready.

But I faced the problem at beginning. I don't know how to use the Binding kubeconfig credential (KUBECONIFG) and feed to Helm command.

I raised the issue in #137 , maybe you can help me directly?

I have done the Bindings to add a Kubeconfig credential (type is Kubernetes configuration (kubeconfig))

How can I use it by helm command?

When echo the variable $KUBECONFIG, I get a long path as below

/var/lib/jenkins/workspace/<helm-chart>@tmp/secretFiles/fbe9729c-59da-xxxx-95cb-de2ef3acadaa/kubeconfig

How can I use it as ~/.kube/config?

ozbillwang commented 3 years ago

@gavinfish

What's the reason to close it directly? Will we still plan to merge this change?

gavinfish commented 3 years ago

@ozbillwang I am not working on this any more. Feel free to pick up.