kubeconfig

package
v1.61.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecret

func GenerateSecret(clusterName string, namespace string, data []byte) *corev1.Secret

GenerateSecret returns a Kubernetes secret for the given Cluster and kubeconfig data.

func New

func New(clusterName, endpoint string, caCert []byte, clientKey []byte, clientCert []byte) (*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