Simple Gradle plugin to wrap Helm executable as tasks.
By using this plugin there is no need to download and install helm client.
Helm executable is downloaded and unpacked in .gradle
dir.
All major operating systems such as Linux, Windows, Mac OS are supported.
- JRE 8 or higher to run gradle wrapper
- configured Kubernetes context to be used by helm client
- Apply a plugin to a project as described on gradle portal.
- Configure a plugin by specifying desired helm version in build script (default:
3.3.1
):helmPlugin { helmVersion.set("3.2.2") }
- Define a task to run desired helm client command, for example:
tasks { register<HelmTask>("helmHelp") { args("--help") } }
- Run helm command from gradle:
# Linux ./gradlew helmHelp # Windows gradlew.bat helmHelp