Class 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
    • Method Detail

      • newInstance

        public HelmInit newInstance​(String helm,
                                    Arguments arguments,
                                    Arguments flags,
                                    EnvironmentVariables env)
        Description copied from interface: CLI
        Create a new instance of this Helm command.
        arguments - the command arguments
        flags - the command flags
        env - 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-image flag.
        Returns:
        a copy of this Helm create command that also applies the --canary-image flag
      • clientOnly

        public HelmInit clientOnly()
        Obtain a copy of this Helm create command that also applies the --client-only flag.
        Returns:
        a copy of this Helm create command that also applies the --client-only flag
      • dryRun

        public HelmInit dryRun()
        Obtain a copy of this Helm create command that also applies the --dry-run flag.
        Returns:
        a copy of this Helm create command that also applies the --dry-run flag
      • localRepoURL

        public HelmInit localRepoURL​(String url)
        Obtain a copy of this Helm create command that also applies the --local-repo-url flag.
        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-url flag
      • netHost

        public HelmInit netHost()
        Obtain a copy of this Helm create command that also applies the --net-host flag.
        Returns:
        a copy of this Helm create command that also applies the --net-host flag
      • serviceAccount

        public HelmInit serviceAccount​(String name)
        Obtain a copy of this Helm create command that also applies the --service-account flag.
        Parameters:
        name - name of service account
        Returns:
        a copy of this Helm create command that also applies the --service-account flag
      • skipRefresh

        public HelmInit skipRefresh()
        Obtain a copy of this Helm create command that also applies the --skip-refresh flag.
        Returns:
        a copy of this Helm create command that also applies the --skip-refresh flag
      • stableRepoURL

        public HelmInit stableRepoURL​(String url)
        Obtain a copy of this Helm create command that also applies the --stable-repo-url flag.
        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-url flag
      • tillerImage

        public HelmInit tillerImage​(String image)
        Obtain a copy of this Helm create command that also applies the --tiller-image flag.
        Parameters:
        image - the name of the Tiller image to use
        Returns:
        a copy of this Helm create command that also applies the --tiller-image flag
      • tillerTLS

        public HelmInit tillerTLS()
        Obtain a copy of this Helm create command that also applies the --tiller-tls flag.
        Returns:
        a copy of this Helm create command that also applies the --tiller-tls flag
      • tillerTLSCert

        public HelmInit tillerTLSCert​(String cert)
        Obtain a copy of this Helm create command that also applies the --tiller-tls-cert flag.
        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-cert flag
      • tillerTLSKey

        public HelmInit tillerTLSKey​(String key)
        Obtain a copy of this Helm create command that also applies the --tiller-tls-key flag.
        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-key flag
      • tillerTLSVerify

        public HelmInit tillerTLSVerify()
        Obtain a copy of this Helm create command that also applies the --tiller-tls-verify flag.
        Returns:
        a copy of this Helm create command that also applies the --tiller-tls-verify flag
      • tlsCACert

        public HelmInit tlsCACert​(String cert)
        Obtain a copy of this Helm create command that also applies the --tiller-ca-cert flag.
        Parameters:
        cert - path to CA root certificate
        Returns:
        a copy of this Helm create command that also applies the --tiller-ca-cert flag
      • upgrade

        public HelmInit upgrade()
        Obtain a copy of this Helm create command that also applies the --upgrade flag.
        Returns:
        a copy of this Helm create command that also applies the --upgrade flag