gradle-helm-plugin icon indicating copy to clipboard operation
gradle-helm-plugin copied to clipboard

Unable to execute any helm commands if chart has a dependent chart with helm 3.4.x

Open phlawski opened this issue 3 years ago • 3 comments

Hi,

My helm chart does inherit from other dependent third party chart. After upgrading to helm 3.4.1 I'm getting errors like this:

Error: no cached repository for helm-manager-0fab4cf7b4cfa351ed10e192302d9613cf0d28c7adf9b3893d169ed140c28450 found. (try 'helm repo update'): open /Users/xxx/src/foo/.gradle/helm/cache/helm/repository/helm-manager-0fab4cf7b4cfa351ed10e192302d9613cf0d28c7adf9b3893d169ed140c28450-index.yaml: no such file or directory

The only way to fix that is to force the plugin to use local helm distribution via downloadClient { } and point to the version 3.3.4. Any other version, even downloaded locally, which is greater or equal to 3.4.0 fails.

OS: macOS Big Sur 11.0.1 System helm installed from brew: 3.4.1 JDK: openjdk version "11.0.9.1" 2020-11-04 LTS

phlawski avatar Nov 17 '20 11:11 phlawski

Same issue here with downloaded Helm:

Helm:   3.5.3 or 3.6.0
Plugin: 1.6.1
Gradle: 6.8.3
Kotlin: 1.4.20
JVM:    1.8.0_141 (Oracle Corporation 25.141-b15)
OS:     Linux 5.4.0-73-generic amd64 (Ubuntu 20.04.2 LTS)

loganmzz avatar May 28 '21 15:05 loganmzz

On my side, problem was solved by declaring repository in build.gradle.kts. See https://github.com/loganmzz/unbroken-dome.gradle-helm-plugin.issues-102/commit/c9f79837636f370b918ef857439710b9f5cb860b

loganmzz avatar Jun 01 '21 08:06 loganmzz

This seems to be caused by the same Helm bug for which I filed an issue earlier today:

https://github.com/helm/helm/issues/11369

vovtz avatar Sep 21 '22 11:09 vovtz