Class AbstractHelmInstallationCommandTask
-
- All Implemented Interfaces:
-
io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmInstallFromRepositoryOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmInstallationOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmServerOperationOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.ConfigurableHelmServerOptions,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.HelmInstallFromRepositoryOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmInstallationOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmServerOperationOptions,io.github.build.extensions.oss.gradle.plugins.helm.command.HelmServerOptions,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 AbstractHelmInstallationCommandTask extends AbstractHelmServerOperationCommandTask implements ConfigurableHelmInstallFromRepositoryOptions, ConfigurableHelmValueOptions
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>releaseNameprivate final Property<String>chartprivate final Property<String>versionprivate final Property<Boolean>atomicprivate final RegularFilePropertycaFileprivate final RegularFilePropertycertFileprivate final Property<Boolean>develprivate final RegularFilePropertykeyFileprivate final Property<String>passwordprivate final Property<URI>repositoryprivate final Property<String>usernameprivate final MapProperty<String, Object>valuesprivate final MapProperty<String, Object>fileValuesprivate final ConfigurableFileCollectionvalueFilesprivate final Property<Boolean>verifyprivate final Property<Boolean>waitprivate final Property<Boolean>waitForJobsprivate final Property<Boolean>createNamespaceprivate final Property<Boolean>dryRunprivate final Property<Boolean>noHooksprivate final Property<Duration>remoteTimeoutprivate final RegularFilePropertykubeConfigprivate final Property<String>kubeContextprivate final Property<String>namespaceprivate 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 AbstractHelmInstallationCommandTask()
-
Method Summary
Modifier and Type Method Description Property<String>getReleaseName()Release name. final Property<String>getChart()The chart to be installed. Property<String>getVersion()Specify the exact chart version to install. final Property<Boolean>getAtomic()If true, roll back changes on failure.final RegularFilePropertygetCaFile()Verify certificates of HTTPS-enabled servers using this CA bundle. final RegularFilePropertygetCertFile()Identify HTTPS client using this SSL certificate file. final Property<Boolean>getDevel()If true, use development versions, too.final RegularFilePropertygetKeyFile()Identify HTTPS client using this SSL key file. final Property<String>getPassword()Chart repository password where to locate the requested chart. final Property<URI>getRepository()Chart repository URL where to locate the requested chart. final Property<String>getUsername()Chart repository username where to locate the requested chart. final MapProperty<String, Object>getValues()Values to be used for the release. final MapProperty<String, Object>getFileValues()Values read from the contents of files, to be used for the release. final ConfigurableFileCollectiongetValueFiles()A collection of YAML files containing values for this release. final Property<Boolean>getVerify()If true, verify the package before installing it.final Property<Boolean>getWait()If true, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful.final Property<Boolean>getWaitForJobs()If true, and wait is alsotrue, will wait until all Jobs have been completed before marking the release as successful.final Property<Boolean>getCreateNamespace()If true, create the release namespace if not present.final Unitfrom(Object chart)Sets the chart to be installed. -
Methods inherited from class io.github.build.extensions.oss.gradle.plugins.helm.command.tasks.AbstractHelmServerOperationCommandTask
getDryRun, getNoHooks, getRemoteTimeout -
Methods inherited from class io.github.build.extensions.oss.gradle.plugins.helm.command.tasks.AbstractHelmServerCommandTask
getKubeConfig, getKubeContext, getNamespace -
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
-
getReleaseName
@Input() Property<String> getReleaseName()
Release name.
-
getChart
@Input() final Property<String> getChart()
The chart to be installed. This can be any of the forms accepted by the Helm CLI.
chart reference: e.g.
stable/mariadbpath to a packaged chart
path to an unpacked chart directory
absolute URL: e.g.
https://example.com/charts/nginx-1.2.3.tgzsimple chart reference, e.g.
mariadb(you must also set the repository property in this case)
-
getVersion
@Input()@Optional() Property<String> getVersion()
Specify the exact chart version to install. If this is not specified, the latest version is installed.
Corresponds to the
--versionHelm CLI parameter.
-
getAtomic
@Internal() final Property<Boolean> getAtomic()
If
true, roll back changes on failure.Corresponds to the
--atomicHelm CLI parameter.
-
getCaFile
@Internal() final RegularFileProperty getCaFile()
Verify certificates of HTTPS-enabled servers using this CA bundle.
Corresponds to the
--ca-fileCLI parameter.
-
getCertFile
@Internal() final RegularFileProperty getCertFile()
Identify HTTPS client using this SSL certificate file.
Corresponds to the
--cert-fileCLI parameter.
-
getDevel
@Input()@Optional() final Property<Boolean> getDevel()
If
true, use development versions, too. Equivalent to version>0.0.0-0. If version is set, this is ignored.Corresponds to the
--develCLI parameter.
-
getKeyFile
@Internal() final RegularFileProperty getKeyFile()
Identify HTTPS client using this SSL key file.
Corresponds to the
--key-fileCLI parameter.
-
getPassword
@Internal() final Property<String> getPassword()
Chart repository password where to locate the requested chart.
Corresponds to the
--passwordCLI parameter.
-
getRepository
@Input()@Optional() final Property<URI> getRepository()
Chart repository URL where to locate the requested chart.
Corresponds to the
--repoHelm CLI parameter.Use this when the chart property contains only a simple chart reference, without a symbolic repository name.
-
getUsername
@Internal() final Property<String> getUsername()
Chart repository username where to locate the requested chart.
Corresponds to the
--usernameCLI parameter.
-
getValues
@Input() final MapProperty<String, Object> getValues()
Values to be used for the release.
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, to be used for the release.
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, this 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 for this release.
Corresponds to the
--valuesCLI option.Not to be confused with fileValues, which contains entries whose values are the contents of files.
-
getVerify
@Internal() final Property<Boolean> getVerify()
If
true, verify the package before installing it.Corresponds to the
--verifyCLI parameter.
-
getWait
@Internal() final Property<Boolean> getWait()
If
true, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as along as remoteTimeout.
-
getWaitForJobs
@Internal() final Property<Boolean> getWaitForJobs()
If
true, and wait is alsotrue, will wait until all Jobs have been completed before marking the release as successful. It will wait for as long as remoteTimeout.
-
getCreateNamespace
@Internal() final Property<Boolean> getCreateNamespace()
If
true, create the release namespace if not present.Corresponds to the
--create-namespaceCLI parameter.
-
from
final Unit from(Object chart)
Sets the chart to be installed. The value can be any of the forms accepted by the Helm CLI.
This is a convenience method that can be used instead of setting the chart property directly.
The following argument types are accepted:
A chart reference (
String): e.g.stable/mariadb.A path to a packaged chart (
String, File, RegularFile)A path to an unpacked chart directory (
String, File, Directory)An absolute URL (
String, URI): e.g.https://example.com/charts/nginx-1.2.3.tgzA simple chart reference (
String), e.g.mariadb. Note that you must also set the repository property in this case.a Provider of any of the above.
-
-
-
-