Class AbstractHelmCommandTask
-
- All Implemented Interfaces:
-
io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableGlobalHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.GlobalHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmOptions,kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@DisableCachingByDefault(because = "See https://github.com/build-extensions-oss/gradle-helm-plugin/issues/208") public abstract class AbstractHelmCommandTask extends DefaultTask implements ConfigurableGlobalHelmOptions
Base class for tasks that invoke a Helm CLI command.
All the global options below are plain task properties whose conventions are wired from the
helmextension by theHelmCommandsPlugin. They deliberately do not hold on to the extension object itself: the extension is part of the project model, and storing it in task state makes the task unserializable for the configuration cache.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>executableprivate final Property<Boolean>debugprivate final ListProperty<String>extraArgsprivate final DirectoryPropertyxdgDataHomeprivate final DirectoryPropertyxdgConfigHomeprivate final DirectoryPropertyxdgCacheHomeprivate final TaskOutputsInternaloutputsprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final TaskDependencyInternallifecycleDependenciesprivate BooleanisEnabledprivate BooleanimpliesSubProjectsprivate final TaskInputsInternalinputsprivate Booleanenabledprivate final TaskStateInternalstateprivate final TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final LoggingManagerInternalloggingManagerprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
Constructor Summary
Constructors Constructor Description AbstractHelmCommandTask()
-
Method Summary
Modifier and Type Method Description 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. -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getLoggingManager, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getExecutable
@Input() abstract Property<String> getExecutable()
The name or path of the Helm executable.
Defaults to the executable configured on the
helmextension, falling back to the automatically downloaded client (if that is enabled), and finally tohelmas found on thePATH.
-
getDebug
@Console() abstract Property<Boolean> getDebug()
Indicates whether to use the verbose output (
--debugflag) when invoking commands.
-
getExtraArgs
@Input() 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
@Internal() 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
@Internal() 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
@Internal() 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.
-
-
-
-