manusa / helm-java

Helm client for Java
https://www.marcnuri.com
Apache License 2.0
20 stars 7 forks source link

Helm upgrade command not working #125

Open sachinkaushik opened 5 months ago

sachinkaushik commented 5 months ago

I have a helm chart that have two deployments(grafana and hello-world) , I want to update image of deployment grafana.

I was trying using below code, but some how its trying to connect to kubernetes cluster.

UpgradeCommand upgrade = new Helm(Paths.get("/data/my-helm-chart")).upgrade(); upgrade.set("grafana.image.repository", "grafana/grafana-new:latest").call();

Can you please help with correct code. If I have to update any content(name, image, etc) of any deployments in the helm chart. How can I do it using helm.upgrade()

manusa commented 5 months ago

I was trying using below code, but some how its trying to connect to kubernetes cluster.

The helm upgrade command will upgrade the chart in your cluster. It requires a Kubernetes Cluster configuration.

Your code looks correct to me.

sachinkaushik commented 4 months ago

@manusa Is there any way/code that can be used to update helm chart file only.. ?