Class HelmInstall

    • Method Detail

      • development

        public HelmInstall development()
        Use development versions too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.
        Returns:
        a copy of this command with the --devel flag appended
      • dryRun

        public HelmInstall dryRun()
        Perform a dry run install.
        Returns:
        a copy of this command with the --dry-run flag appended
      • name

        public HelmInstall name​(String name)
        Set the release name. If unspecified, it will auto-generate one for you
        Parameters:
        name - the release name
        Returns:
        a copy of this command with the --name flag appended
      • nameTemplate

        public HelmInstall nameTemplate​(String template)
        Specify the template used to name the release.
        Parameters:
        template - the template used to name the release
        Returns:
        a copy of this command with the --name-template flag appended
      • namespace

        public HelmInstall namespace​(String namespace)
        Specify the namespace to install the release into. Defaults to the current kube config namespace.
        Parameters:
        namespace - the namespace to install the release into.
        Returns:
        a copy of this command with the --namespace flag appended
      • noHooks

        public HelmInstall noHooks()
        Prevent hooks from running during install.
        Returns:
        a copy of this command with the --no-hooks flag appended
      • replace

        public HelmInstall replace()
        Re-use the given name, even if that name is already used, his is unsafe in production.
        Returns:
        a copy of this command with the --replace flag appended
      • repo

        public HelmInstall repo​(String repo)
        Set the chart repository url where to locate the requested chart
        Specified by:
        repo in interface CLI.WithRepo<HelmInstall>
        Parameters:
        repo - the chart repository url where to locate the requested chart
        Returns:
        a copy of this command with the --repo flag appended
      • set

        public HelmInstall set​(String... values)
        Set the values to use to override those in the values file. Value strings are in the form "x=y".
        Parameters:
        values - the values to use.
        Returns:
        a copy of this command with the --set flag appended
      • timeout

        public HelmInstall 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 --values flag appended
      • values

        public HelmInstall values​(String valuesFile)
        Specify values in a YAML file (can specify multiple) (default []).
        Parameters:
        valuesFile - the values YAML file
        Returns:
        a copy of this command with the --values flag appended
      • values

        public HelmInstall values​(File valuesFile)
        Specify values in a YAML file (can specify multiple) (default []).
        Parameters:
        valuesFile - the values YAML file
        Returns:
        a copy of this command with the --values flag appended
      • version

        public HelmInstall version​(String version)
        Specify the exact chart version to install. If this is not specified, the latest version is installed.
        Specified by:
        version in interface CLI.WithRepo<HelmInstall>
        Parameters:
        version - the chart version
        Returns:
        a copy of this command with the --version flag appended
      • waitForK8s

        public HelmInstall 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 --timeout option timeout(int) or the default of 300 seconds.
        Returns:
        a copy of this command with the --wait flag appended
      • waitForK8s

        public HelmInstall 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 --wait and --timeout flags appended