GithubHelp home page GithubHelp logo

Comments (6)

mhobotpplnet avatar mhobotpplnet commented on June 18, 2024 1

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.

tkrullmann avatar tkrullmann commented on June 18, 2024 1

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.

kozchris avatar kozchris commented on June 18, 2024

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.

kozchris avatar kozchris commented on June 18, 2024

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.

kozchris avatar kozchris commented on June 18, 2024

As soon as I manually created $buildDir/helm/home I am able to move onto my next issue.

from gradle-helm-plugin.

mhobotpplnet avatar mhobotpplnet commented on June 18, 2024

Thanks for response, yeah dir is def needed.

from gradle-helm-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.