-
- All Implemented Interfaces:
-
org.unbrokendome.gradle.plugins.helm.command.ConfigurableGlobalHelmOptions,org.unbrokendome.gradle.plugins.helm.command.ConfigurableHelmOptions,org.unbrokendome.gradle.plugins.helm.command.ConfigurableHelmServerOptions,org.unbrokendome.gradle.plugins.helm.command.GlobalHelmOptions,org.unbrokendome.gradle.plugins.helm.command.HelmExecProvider,org.unbrokendome.gradle.plugins.helm.command.HelmOptions,org.unbrokendome.gradle.plugins.helm.command.HelmServerOptions
public interface HelmExtension implements HelmExecProvider, ConfigurableGlobalHelmOptions, ConfigurableHelmServerOptions
The main Helm DSL extension, accessible using the
helm { ... }block in build scripts.
-
-
Method Summary
Modifier and Type Method Description UnitdownloadClient(Action<HelmDownloadClient> configureAction)Configures the download of the Helm client executable. abstract HelmDownloadClientgetDownloadClient()Configures the download of the Helm client executable. abstract DirectoryPropertygetOutputDir()Base output directory for Helm charts. abstract DirectoryPropertygetRenderOutputDir()Base output directory for rendering ( helm template) outputs.abstract Property<String>getExecutable()The name or path of the Helm executable. abstract Property<Boolean>getDebug()Indicates whether to use the verbose output ( --debugflag) when invoking commands.abstract ListProperty<String>getExtraArgs()Additional command-line arguments to pass to the Helm CLI. abstract DirectoryPropertygetXdgDataHome()Base directory for storing data. abstract DirectoryPropertygetXdgConfigHome()Base directory for storing configuration. abstract DirectoryPropertygetXdgCacheHome()Base directory for storing cached data. abstract RegularFilePropertygetKubeConfig()Path to the Kubernetes configuration file. abstract Property<String>getKubeContext()Name of the kubeconfig context to use. abstract Property<String>getNamespace()Namespace scope for this request. -
-
Method Detail
-
downloadClient
Unit downloadClient(Action<HelmDownloadClient> configureAction)
Configures the download of the Helm client executable.
- Parameters:
configureAction- an Action that modifies the HelmDownloadClient settings
-
getDownloadClient
abstract HelmDownloadClient getDownloadClient()
Configures the download of the Helm client executable.
-
getOutputDir
abstract DirectoryProperty getOutputDir()
Base output directory for Helm charts.
Defaults to
"${project.buildDir}/helm/charts".
-
getRenderOutputDir
abstract DirectoryProperty getRenderOutputDir()
Base output directory for rendering (
helm template) outputs.Defaults to
"${project.buildDir}/helm/render".
-
getExecutable
abstract Property<String> getExecutable()
The name or path of the Helm executable. The
PATHvariable is taken into account, so this can just be"helm"if the Helm client is installed in a suitable location.
-
getDebug
abstract Property<Boolean> getDebug()
Indicates whether to use the verbose output (
--debugflag) when invoking commands.
-
getExtraArgs
abstract ListProperty<String> getExtraArgs()
Additional command-line arguments to pass to the Helm CLI.
This can be used for command-line options that have no counterpart in the plugin.
-
getXdgDataHome
abstract DirectoryProperty getXdgDataHome()
Base directory for storing data.
Corresponds to the
XDG_DATA_HOMEenvironment variable. If not set, defaults tohelm/datainside the project build directory.See [https://helm.sh/docs/helm/helm/] for details about how XDG base directories are used by the Helm CLI.
-
getXdgConfigHome
abstract DirectoryProperty getXdgConfigHome()
Base directory for storing configuration.
Corresponds to the
XDG_CONFIG_HOMEenvironment variable. If not set, defaults tohelm/configinside the project build directory.See [https://helm.sh/docs/helm/helm/] for details about how XDG base directories are used by the Helm CLI.
-
getXdgCacheHome
abstract DirectoryProperty getXdgCacheHome()
Base directory for storing cached data.
Corresponds to the
XDG_CACHE_HOMEenvironment variable. If not set, defaults to.gradle/helm/cacheinside the root project directory.See [https://helm.sh/docs/helm/helm/] for details about how XDG base directories are used by the Helm CLI.
-
getKubeConfig
abstract RegularFileProperty getKubeConfig()
Path to the Kubernetes configuration file.
If this property is set, its value will be used to set the
KUBECONFIGenvironment variable for each Helm invocation.
-
getKubeContext
abstract Property<String> getKubeContext()
Name of the kubeconfig context to use.
Corresponds to the
--kube-contextcommand line option in the Helm CLI.
-
getNamespace
abstract Property<String> getNamespace()
Namespace scope for this request.
Corresponds to the
--namespaceCLI parameter.
-
-
-
-