kubeconfig

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecret

func CreateSecret(ctx context.Context, c client.Client, cluster *clusterv1.Cluster) error

CreateSecret creates the Kubeconfig secret for the given cluster.

func FromSecret

func FromSecret(c client.Client, cluster *clusterv1.Cluster) ([]byte, error)

FromSecret fetches the Kubeconfig for a Cluster.

func New

func New(clusterName, endpoint string, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*api.Config, error)

New creates a new Kubeconfig using the cluster name and specified endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL