Class HelmRollback
- java.lang.Object
-
- com.oracle.bedrock.runtime.k8s.helm.HelmCommand<HelmRollback>
-
- com.oracle.bedrock.runtime.k8s.helm.HelmRollback
-
- All Implemented Interfaces:
CLI<HelmRollback>,CLI.WithTLS<HelmRollback>,MetaClass<Application>
public class HelmRollback extends HelmCommand<HelmRollback> implements CLI.WithTLS<HelmRollback>
A representation of the Helm rollback 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 HelmRollbackdryRun()Perform a dry run install.HelmRollbackforce()Force resource update through delete/recreate if needed.HelmRollbacknewInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env)Create a new instance of this Helm command.HelmRollbacknoHooks()Prevent hooks from running during install.HelmRollbackrecreatePods()Performs pods restart for the resource if applicable.HelmRollbacktimeout(int seconds)Set the time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)HelmRollbackwaitForK8s()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.HelmRollbackwaitForK8s(int seconds)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.-
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 HelmRollback dryRun()
Perform a dry run install.- Returns:
- a copy of this command with the
--dry-runflag appended
-
force
public HelmRollback force()
Force resource update through delete/recreate if needed.- Returns:
- a copy of this command with the
--forceflag appended
-
noHooks
public HelmRollback noHooks()
Prevent hooks from running during install.- Returns:
- a copy of this command with the
--no-hooksflag appended
-
recreatePods
public HelmRollback recreatePods()
Performs pods restart for the resource if applicable.- Returns:
- a copy of this command with the
--recreate-podsflag appended
-
timeout
public HelmRollback timeout(int seconds)
Set the time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)- Parameters:
seconds- the timeout in seconds- Returns:
- a copy of this command with the
--valuesflag appended
-
waitForK8s
public HelmRollback waitForK8s()
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. Will wait for the number of seconds specified with the--timeoutoptiontimeout(int)or the default of 300 seconds.- Returns:
- a copy of this command with the
--waitflag appended
-
waitForK8s
public HelmRollback waitForK8s(int seconds)
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.- Parameters:
seconds- timeout in seconds- Returns:
- a copy of this command with the
--waitand--timeoutflags appended
-
newInstance
public HelmRollback 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<HelmRollback>arguments- the command argumentsflags- the command flagsenv- the environment variables- Returns:
- a new instance of this command
-
-