Class HelmLint
-
- All Implemented Interfaces:
-
io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmValueOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.GlobalHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmValueOptions,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
public class HelmLint extends AbstractHelmCommandTask implements ConfigurableHelmValueOptions
Runs a series of tests to verify that a chart is well-formed. Corresponds to the
helm lintCLI command.
-
-
Field Summary
Fields Modifier and Type Field Description private final DirectoryPropertychartDirprivate final Property<Boolean>strictprivate final MapProperty<String, Object>valuesprivate final MapProperty<String, Object>fileValuesprivate final ConfigurableFileCollectionvalueFilesprivate final Property<Boolean>withSubchartsprivate final RegularFilePropertyoutputMarkerFileprivate final Provider<String>executableprivate final Provider<Boolean>debugprivate final Provider<List<String>>extraArgsprivate final Provider<Directory>xdgDataHomeprivate final Provider<Directory>xdgConfigHomeprivate final Provider<Directory>xdgCacheHomeprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActions
-
Constructor Summary
Constructors Constructor Description HelmLint()
-
Method Summary
Modifier and Type Method Description final DirectoryPropertygetChartDir()The directory that contains the sources for the Helm chart. final Property<Boolean>getStrict()If set to true, fail on warnings emitted by the linter.final MapProperty<String, Object>getValues()Values to be passed directly. final MapProperty<String, Object>getFileValues()Values read from the contents of files. final ConfigurableFileCollectiongetValueFiles()A collection of YAML files containing values. final Property<Boolean>getWithSubcharts()If true, also lint dependent charts.final RegularFilePropertygetOutputMarkerFile()If set, the task will create an empty marker file at this path after a successful call to helm lint.final Unitlint()-
Methods inherited from class io.github.build.extensions.oss.gradle.plugins.helm.command.tasks.AbstractHelmCommandTask
getDebug, getExecutable, getExtraArgs, getXdgCacheHome, getXdgConfigHome, getXdgDataHome -
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getChartDir
@InputDirectory()@SkipWhenEmpty() final DirectoryProperty getChartDir()
The directory that contains the sources for the Helm chart.
-
getStrict
@Input()@Optional() final Property<Boolean> getStrict()
If set to
true, fail on warnings emitted by the linter.
-
getValues
@Input() final MapProperty<String, Object> getValues()
Values to be passed directly.
Entries in the map will be sent to the CLI using either the
--set-stringoption (for strings) or the--setoption (for all other types).
-
getFileValues
@Input() final MapProperty<String, Object> getFileValues()
Values read from the contents of files.
Corresponds to the
--set-fileCLI option.The values of the map can be of any type that is accepted by Project.file. Additionally, when adding a Provider that represents an output file of another task, the consuming task will automatically have a task dependency on the producing task.
Not to be confused with valueFiles, which contains a collection of YAML files that supply multiple values.
-
getValueFiles
@InputFiles() final ConfigurableFileCollection getValueFiles()
A collection of YAML files containing values.
Corresponds to the
--valuesCLI option.Not to be confused with fileValues, which contains entries whose values are the contents of files.
-
getWithSubcharts
@Input()@Optional() final Property<Boolean> getWithSubcharts()
If
true, also lint dependent charts.Corresponds to the
--with-subchartsCLI option.
-
getOutputMarkerFile
@OutputFile()@Optional() final RegularFileProperty getOutputMarkerFile()
If set, the task will create an empty marker file at this path after a successful call to
helm lint.This is necessary for Gradle's up-to-date checking because
helm lintitself doesn't output any files.
-
-
-
-