- java.lang.Object
-
- com.oracle.bedrock.runtime.k8s.helm.HelmCommand<HelmDelete>
-
- com.oracle.bedrock.runtime.k8s.helm.HelmDelete
-
- All Implemented Interfaces:
CLI<HelmDelete>,CLI.WithTLS<HelmDelete>,MetaClass<Application>
public class HelmDelete extends HelmCommand<HelmDelete> implements CLI.WithTLS<HelmDelete>
A representation of the Helm delete command.Copyright (c) 2018. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.bedrock.runtime.k8s.helm.HelmCommand
HelmCommand.Template
-
Nested classes/interfaces inherited from interface com.oracle.bedrock.runtime.k8s.helm.CLI
CLI.WithCerts<C extends CLI.WithCerts>, CLI.WithRepo<C extends CLI.WithRepo>, CLI.WithTLS<C extends CLI.WithTLS>
-
-
Field Summary
-
Fields inherited from class com.oracle.bedrock.runtime.k8s.helm.HelmCommand
DEFAULT_HELM
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelmDeletedryRun()Simulate a delete.HelmDeletenewInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env)Create a new instance of this Helm command.HelmDeletenoHooks()Prevent hooks from running during deletion.HelmDeletepurge()Remove the release from the store and make its name free for later use.HelmDeletetimeout(int seconds)Set the time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300).-
Methods inherited from class com.oracle.bedrock.runtime.k8s.helm.HelmCommand
execute, executeAndWait, getArguments, getCommands, getEnvironment, getFlags, getHelmLocation, getImplementationClass, helmExists, isFlagsFirst, onLaunch, onLaunched, onLaunching
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bedrock.runtime.k8s.helm.CLI
debug, getArguments, getCommands, getEnvironment, getFlags, getHelmLocation, home, host, isFlagsFirst, kubeConfig, kubeContext, tillerNamespace, withArguments, withArguments, withArguments, withEnvironment, withEnvironment, withEnvironment, withEnvironment, withFlags, withFlags, withFlags, withHelmAt
-
Methods inherited from interface com.oracle.bedrock.runtime.k8s.helm.CLI.WithTLS
tls, tlsCaCert, tlsCert, tlsKey, tlsVerify
-
Methods inherited from interface com.oracle.bedrock.runtime.MetaClass
getImplementationClass, onLaunch, onLaunched, onLaunching
-
-
-
-
Method Detail
-
dryRun
public HelmDelete dryRun()
Simulate a delete.- Returns:
- a copy of this command with the
--dry-runflag appended
-
noHooks
public HelmDelete noHooks()
Prevent hooks from running during deletion.- Returns:
- a copy of this command with the
--no-hooksflag appended
-
purge
public HelmDelete purge()
Remove the release from the store and make its name free for later use.- Returns:
- a copy of this command with the
--purgeflag appended
-
timeout
public HelmDelete timeout(int seconds)
Set the time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300).- Returns:
- a copy of this command with the
--timeoutflag appended
-
newInstance
public HelmDelete newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env)
Description copied from interface:CLICreate a new instance of this Helm command.- Specified by:
newInstancein interfaceCLI<HelmDelete>arguments- the command argumentsflags- the command flagsenv- the environment variables- Returns:
- a new instance of this command
-
-