Comments (6)
Helm lint/package now works for me too. My dir structure was bit different but it works now.
Thank you for help @kozchris
This is what I had in my test gradle for that project
import org.unbrokendome.gradle.plugins.helm.command.tasks.*
plugins {
id("org.unbroken-dome.helm")
}
plugins {
id ('org.unbroken-dome.helm-commands')
}
helm {
charts {
create("myappname") {
chartName.set("myappname")
chartVersion.set("1.2.3")
sourceDir.set(file("src/main/helm"))
}
}
}
helm { home = file("$buildDir/helm/home") }
from gradle-helm-plugin.
Hi! Glad you figured out a solution.
I think the problem is that the helmLint<Chart>
task did not have a dependency on helmInitClient
, so if your helm home directory was missing, then it would fail because that directory is created by helmInitClient
.
It should be fixed in the next release.
from gradle-helm-plugin.
I'm getting the same thing with the helmPackage task. When I run gradle helmPackage --debug
i see the helm home command run and finish with exit code 0.
I can see the directory, seems to have the correct permissions, and it is empty.
14:57:16.130 [INFO] [org.unbrokendome.gradle.plugins.helm.command.HelmExecProviderSupport] Executing: [helm, home] 14:57:16.130 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command 'helm''. Working directory: /Users/chris/Documents/git/images/mms-activemq Command: helm home 14:57:16.130 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command 'helm'': {PATH=/Users/chris/bin: <removed some paths for clarity>... SHLVL=1, HOME=/Users/chris, APP_NAME_44546=Gradle} 14:57:16.130 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING 14:57:16.130 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'helm'. 14:57:16.135 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED 14:57:16.135 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled... 14:57:16.135 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'helm'' 14:57:16.193 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: SUCCEEDED 14:57:16.193 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'helm'' finished with exit value 0 (state: SUCCEEDED)
After that I see the exception.
14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem was found with the configuration of task ':mms-activemq:helmLintMainChart'. 14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Directory '/Users/chris/.helm 14:57:16.196 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ' specified for property '$1' does not exist.
Just starting out with helm charts and this plugin so I guess I am missing some required configuration. If there is something I can do to help debug this issue let me know.
from gradle-helm-plugin.
adding
helm { home = file("$buildDir/helm/home") }
I see the error message adjust accordingly to show this path.
* What went wrong: A problem was found with the configuration of task ':mms-activemq:helmLintMainChart'. Directory '<my buildDir>/helm/home' specified for property '$1' does not exist.
from gradle-helm-plugin.
As soon as I manually created $buildDir/helm/home
I am able to move onto my next issue.
from gradle-helm-plugin.
Thanks for response, yeah dir is def needed.
from gradle-helm-plugin.
Related Issues (20)
- Add support for linting charts with their sub-charts
- helmUpdate*Dependecies fails with "Error: no cached repository for helm-manager" HOT 2
- Automatic client download conflicts with dependencyResolutionManagement repositories
- --info leaks passwords in build log (helm repo credentials)
- helmPackageMainChart fails in multi-project build with error "Cannot add task 'helmDownloadClient_xxx' as a task with that name already exists" HOT 3
- OCI support HOT 1
- Allow specifying `--create-namespace` on a helm install command HOT 3
- helmUninstall doesn't work if release in `pending-install` state
- `createNamespace = true` creates a namespace. How do I delete one?
- API/DSL link is broken HOT 2
- [Question] Is Helm repo config `pass_credentials_all` supported?
- Plugin does not work on Linux aarch64
- A possibility to configure 'channel' at Gitlab Helm Repositories HOT 1
- Is this plugin still maintained ? HOT 1
- Support Gradle 8 HOT 15
- Add support for channels in gitlab publisher HOT 1
- Does not resolve external chart dependencies from Chart.yaml only from requirements.yaml HOT 1
- Add support for --skip-crds flag HOT 1
- Support Gradle 8 HOT 3
- Maintenance plans for gradle-helm-plugin HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-helm-plugin.