Class HelmAddRepository
-
- 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 HelmAddRepository extends AbstractHelmCommandTask
Registers a known repository with Helm. Corresponds to the
helm repo addCLI command.If the repository url is an OCI registry (
oci://...), the task runshelm registry logininstead: OCI registries cannot be added withhelm repo add, but they need the login before charts can be pulled from them, for example byhelm dependency update.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>repositoryNameprivate final Property<URI>urlprivate final RegularFilePropertycaFileprivate final Property<String>usernameprivate final Property<String>passwordprivate final RegularFilePropertycertificateFileprivate final RegularFilePropertykeyFileprivate final Property<Boolean>failIfExistsprivate 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 HelmAddRepository()
-
Method Summary
Modifier and Type Method Description final Property<String>getRepositoryName()Name of the repository. final Property<URI>getUrl()URL of the repository. final RegularFilePropertygetCaFile()A CA bundle used to verify certificates of HTTPS-enabled servers. final Property<String>getUsername()Username to access the chart repository. final Property<String>getPassword()Password to access the chart repository. final RegularFilePropertygetCertificateFile()Path to a certificate file for client SSL authentication. final RegularFilePropertygetKeyFile()Path to a certificate private key file for client SSL authentication. final Property<Boolean>getFailIfExists()If set to true, fails if the repository is already registered.final UnitaddRepository()-
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, 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
-
getRepositoryName
@Input() final Property<String> getRepositoryName()
Name of the repository.
-
getCaFile
@InputFile()@Optional() final RegularFileProperty getCaFile()
A CA bundle used to verify certificates of HTTPS-enabled servers.
Corresponds to the
--ca-fileCLI parameter.
-
getUsername
@Input()@Optional() final Property<String> getUsername()
Username to access the chart repository.
Corresponds to the
--usernameCLI parameter.
-
getPassword
@Input()@Optional() final Property<String> getPassword()
Password to access the chart repository.
Corresponds to the
--passwordCLI parameter.
-
getCertificateFile
@InputFile()@Optional() final RegularFileProperty getCertificateFile()
Path to a certificate file for client SSL authentication.
Corresponds to the
--cert-fileCLI parameter.
-
getKeyFile
@InputFile()@Optional() final RegularFileProperty getKeyFile()
Path to a certificate private key file for client SSL authentication.
Corresponds to the
--key-fileCLI parameter.
-
getFailIfExists
@Internal() final Property<Boolean> getFailIfExists()
If set to
true, fails if the repository is already registered.Corresponds to the
--no-updatecommand line flag.
-
addRepository
final Unit addRepository()
-
-
-
-