- java.lang.Object
-
- com.oracle.bedrock.runtime.k8s.helm.HelmCommand<HelmInit>
-
- com.oracle.bedrock.runtime.k8s.helm.HelmInit
-
- All Implemented Interfaces:
CLI<HelmInit>,MetaClass<Application>
public class HelmInit extends HelmCommand<HelmInit>
A representation of the Helm init 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 HelmInitcanaryImage()Obtain a copy of this Helm create command that also applies the--canary-imageflag.HelmInitclientOnly()Obtain a copy of this Helm create command that also applies the--client-onlyflag.HelmInitdryRun()Obtain a copy of this Helm create command that also applies the--dry-runflag.HelmInitlocalRepoURL(String url)Obtain a copy of this Helm create command that also applies the--local-repo-urlflag.HelmInitnetHost()Obtain a copy of this Helm create command that also applies the--net-hostflag.HelmInitnewInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env)Create a new instance of this Helm command.HelmInitserviceAccount(String name)Obtain a copy of this Helm create command that also applies the--service-accountflag.HelmInitskipRefresh()Obtain a copy of this Helm create command that also applies the--skip-refreshflag.HelmInitstableRepoURL(String url)Obtain a copy of this Helm create command that also applies the--stable-repo-urlflag.HelmInittillerImage(String image)Obtain a copy of this Helm create command that also applies the--tiller-imageflag.HelmInittillerTLS()Obtain a copy of this Helm create command that also applies the--tiller-tlsflag.HelmInittillerTLSCert(String cert)Obtain a copy of this Helm create command that also applies the--tiller-tls-certflag.HelmInittillerTLSKey(String key)Obtain a copy of this Helm create command that also applies the--tiller-tls-keyflag.HelmInittillerTLSVerify()Obtain a copy of this Helm create command that also applies the--tiller-tls-verifyflag.HelmInittlsCACert(String cert)Obtain a copy of this Helm create command that also applies the--tiller-ca-certflag.HelmInitupgrade()Obtain a copy of this Helm create command that also applies the--upgradeflag.-
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, home, host, kubeConfig, kubeContext, tillerNamespace, withArguments, withArguments, withArguments, withEnvironment, withEnvironment, withEnvironment, withEnvironment, withFlags, withFlags, withFlags, withHelmAt
-
-
-
-
Method Detail
-
newInstance
public HelmInit newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env)
Description copied from interface:CLICreate a new instance of this Helm command.arguments- the command argumentsflags- the command flagsenv- the environment variables- Returns:
- a new instance of this command
-
canaryImage
public HelmInit canaryImage()
Obtain a copy of this Helm create command that also applies the--canary-imageflag.- Returns:
- a copy of this Helm create command that also
applies the
--canary-imageflag
-
clientOnly
public HelmInit clientOnly()
Obtain a copy of this Helm create command that also applies the--client-onlyflag.- Returns:
- a copy of this Helm create command that also
applies the
--client-onlyflag
-
dryRun
public HelmInit dryRun()
Obtain a copy of this Helm create command that also applies the--dry-runflag.- Returns:
- a copy of this Helm create command that also
applies the
--dry-runflag
-
localRepoURL
public HelmInit localRepoURL(String url)
Obtain a copy of this Helm create command that also applies the--local-repo-urlflag.- Parameters:
url- URL for local repository (default "http://127.0.0.1:8879/charts")- Returns:
- a copy of this Helm create command that also
applies the
--local-repo-urlflag
-
netHost
public HelmInit netHost()
Obtain a copy of this Helm create command that also applies the--net-hostflag.- Returns:
- a copy of this Helm create command that also
applies the
--net-hostflag
-
serviceAccount
public HelmInit serviceAccount(String name)
Obtain a copy of this Helm create command that also applies the--service-accountflag.- Parameters:
name- name of service account- Returns:
- a copy of this Helm create command that also
applies the
--service-accountflag
-
skipRefresh
public HelmInit skipRefresh()
Obtain a copy of this Helm create command that also applies the--skip-refreshflag.- Returns:
- a copy of this Helm create command that also
applies the
--skip-refreshflag
-
stableRepoURL
public HelmInit stableRepoURL(String url)
Obtain a copy of this Helm create command that also applies the--stable-repo-urlflag.- Parameters:
url- URL for stable repository (default "https://kubernetes-charts.storage.googleapis.com")- Returns:
- a copy of this Helm create command that also
applies the
--stable-repo-urlflag
-
tillerImage
public HelmInit tillerImage(String image)
Obtain a copy of this Helm create command that also applies the--tiller-imageflag.- Parameters:
image- the name of the Tiller image to use- Returns:
- a copy of this Helm create command that also
applies the
--tiller-imageflag
-
tillerTLS
public HelmInit tillerTLS()
Obtain a copy of this Helm create command that also applies the--tiller-tlsflag.- Returns:
- a copy of this Helm create command that also
applies the
--tiller-tlsflag
-
tillerTLSCert
public HelmInit tillerTLSCert(String cert)
Obtain a copy of this Helm create command that also applies the--tiller-tls-certflag.- Parameters:
cert- path to TLS certificate file to install with Tiller- Returns:
- a copy of this Helm create command that also
applies the
--tiller-tls-certflag
-
tillerTLSKey
public HelmInit tillerTLSKey(String key)
Obtain a copy of this Helm create command that also applies the--tiller-tls-keyflag.- Parameters:
key- path to TLS key file to install with Tiller- Returns:
- a copy of this Helm create command that also
applies the
--tiller-tls-keyflag
-
tillerTLSVerify
public HelmInit tillerTLSVerify()
Obtain a copy of this Helm create command that also applies the--tiller-tls-verifyflag.- Returns:
- a copy of this Helm create command that also
applies the
--tiller-tls-verifyflag
-
tlsCACert
public HelmInit tlsCACert(String cert)
Obtain a copy of this Helm create command that also applies the--tiller-ca-certflag.- Parameters:
cert- path to CA root certificate- Returns:
- a copy of this Helm create command that also
applies the
--tiller-ca-certflag
-
upgrade
public HelmInit upgrade()
Obtain a copy of this Helm create command that also applies the--upgradeflag.- Returns:
- a copy of this Helm create command that also
applies the
--upgradeflag
-
-