How to access helm programmatically

1/18/2020

I'd like to access cluster deployed Helm charts programmatically to make web interface which will allow manual chart manipulation.

I found pyhelm but it supports only Helm 2. I looked on npm, but nothing there. I wrote a bash script but if I try to use it's output I get just a string really so it's not really useful.

-- Adam
google-cloud-platform
kubernetes
kubernetes-helm

2 Answers

1/20/2020

If you are OK to use Go then you can use the Helm 3 Go API.

If you want to use Python, I guess you'll have to wait for the Helm v3 support of pyhelm, there is already an issue addressing this.

-- koe
Source: StackOverflow

1/18/2020

I'd like to access cluster deployed Helm charts programmatically to make web interface which will allow manual chart manipulation.

Helm 3 is different than previous versions in that it is a client only tool, similar to e.g. Kustomize. This means that helm charts only exists on the client (and in chart repositories) but is then transformed to a kubernetes manifest during deployment. So only Kubernetes objects exists in the cluster.

Kubernetes API is a REST API so you can access and get Kubernetes objects using a http client. Kubernetes object manifests is available in JSON and Yaml formats.

-- Jonas
Source: StackOverflow