Closed rnett closed 2 years ago
Looks like it was caused by not explicitly specifying:
repositories {
bitnami()
}
Not sure if that's intended or not.
Yes, that's intended -- the plugin won't register any repositories by default so you'll have to add them in your build script.
By default the Helm plugin passes a different cache and config path to helm
, in order to keep the Gradle builds as independent as possible from the state of a local Helm installation. That's why calling helm
in your source folder works in this case: most likely you had the repository already registered with helm repo add
.
You can change this behavior so that Gradle would use the same paths as your local Helm installation by setting the Gradle properties helm.xdgDataHome
, helm.xdgCacheHome
and helm.xdgConfigHome
(best put into ~/.gradle/gradle.properties
and not in your project because they're somewhat specific to your local environment).
Gradle: 7.2 Plugin version: 1.6.1 Helm version: 3.7.0
I'm trying to package a basic chart that depends on bitnami postgresql 10.13.1, this seems to cause the plugin to fail. Stacktrace:
helm update dependencies
andhelm package .
in the source folder works fine.