View Source Helmex (Helmex v0.0.1)

Execute helm CLI commands.

examples

Examples

iex> Helmex.init(kubeconfig: "/path/to/kube/config")
...> |> Helmex.Repo.add("kvaps", "https://kvaps.github.io/charts")
...> |> Helmex.call()

global-options

Global options

OptionType
:burst-limitvalue
:debugflag
:kubeconfigvalue
:namespacevalue

Link to this section Summary

Functions

Executes the helm command

Initialize helm command with an optional global flags

Filter and parse raw options into the %Helmex.Option structs

Link to this section Types

@type result() :: {:ok, String.t()} | {:error, String.t()}

Link to this section Functions

@spec call(helm :: Helmex.Helm.t()) :: result()

Executes the helm command

@spec init(opts :: keyword()) :: Helmex.Helm.t()

Initialize helm command with an optional global flags

examples

Examples

iex> Helmex.init()
%Helmex.Helm{command: nil, global_options: [], options: [], args: []}

iex> Helmex.init(kubeconfig: "/path/to/the/kube/config")
%Helmex.Helm{
  command: nil,
  global_options: [
    %Helmex.Option{
      name: "--kubeconfig",
      require_arg: true,
      value: "/path/to/the/kube/config"
    }
  ],
  options: [],
  args: []
  }
Link to this function

install(helm, name, chart, opts \\ [])

View Source

See Helmex.Install.install/4.

Link to this function

parse_options(opts, allowed_options)

View Source

Filter and parse raw options into the %Helmex.Option structs