Skip to content

Kubernetes Provider

Hooks that interact with various kubernetes resources.

Hooks

Type Description Return
k8s_apply Hook for getting current kubeconfig context. None
k8s_context_list Hook for listing kubeconfig contexts. list
k8s_context_map Hook for return a map of the kubeconfig context details. dict
k8s_current_context Hook for getting current kubeconfig context. str
k8s_use_context Hook for using a kube context. None

Requirements

  • kubernetes

Examples

k8s_context_map

Get a map with keys of kubernetes context names and values with details from KUBECONFIG environment variable.

compact->: k8s_current_context

k8s_context_list

Get a list of kubernetes contexts from KUBECONFIG environment variable.

compact->: k8s_context_list

k8s_context_map

Get a map with keys of kubernetes context names and values with details from KUBECONFIG environment variable.

compact->: k8s_context_map