kubeconfig

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 14 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDependentCertificateNotFound = errors.New("could not find secret ca")
)

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