Class HelmLint
-
- 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.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 abstract 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 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 BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
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.abstract MapProperty<String, Object>getValues()Values to be used by the linter. abstract MapProperty<String, Object>getFileValues()Values read from the contents of files, to be used by the linter. abstract ConfigurableFileCollectiongetValueFiles()A collection of YAML files containing values to be used by the linter. 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.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, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, 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, hasTaskActions, prependParallelSafeAction -
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() abstract MapProperty<String, Object> getValues()
Values to be used by the linter.
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() abstract MapProperty<String, Object> getFileValues()
Values read from the contents of files, to be used by the linter.
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 corresponding install/upgrade 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() abstract ConfigurableFileCollection getValueFiles()
A collection of YAML files containing values to be used by the linter.
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.
-
-
-
-