k8s v0.3.1 K8s.Cluster.Discovery

Interface for K8s.Cluster discovery.

This module implements K8s.Cluster.Discovery.Driver behaviour and delegates function calls to the configured @driver.

This defaults to the K8s.Cluster.Discovery.HTTPDriver

The driver can be set with:

Application.get_env(:k8s, :discovery_driver, MyCustomDiscoveryDriver)

Link to this section Summary

Functions

Lists Kubernetes apiVersions

Lists Kubernetes APIResourceLists

Get all resources keyed by groupVersion/apiVersion membership.

Link to this section Functions

Link to this function

api_versions(cluster, opts \\ [])

Lists Kubernetes apiVersions

Delegates to the configured driver.

Link to this function

resource_definitions(cluster, opts \\ [])

Lists Kubernetes APIResourceLists

Delegates to the configured driver.

Link to this function

resources_by_group(cluster, opts \\ [])
resources_by_group(atom(), Keyword.t() | nil) ::
  {:ok, map()} | {:error, atom()}

Get all resources keyed by groupVersion/apiVersion membership.