Kazan v0.2.0 Kazan.Server

Kazan.Server is a struct containing connection details for a kube server.

Summary

Functions

Parses Kube server details from a provided kubeconfig file

Types

auth_t()
auth_t() :: nil | Kazan.Server.CertificateAuth.t
t()
t() :: %{url: String.t, ca_cert: String.t | nil, auth: auth_t}

Functions

from_kubeconfig(config_file, options \\ [])
from_kubeconfig(String.t, Keyword.t) :: t

Parses Kube server details from a provided kubeconfig file.

Will use the current-context provided in the file by default, though this and other details can be overridden via options

Note: any default namespaces provided in the kubecontext will be ignored.

Options

  • context can be used to override the default context we pull from the file.
  • user can be used to override the default user we pull from the file.
  • cluster can be used to override the default cluster we pull from the file.