kubeconfig

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWebhookKubeconfig

func CreateWebhookKubeconfig(cert *tls.Certificate, kubeconfigPath, serverURL string) error

CreateWebhookKubeconfig will create a kubeconfig for the webhook server

Types

type KubeconfigParams

type KubeconfigParams struct {
	ServerURL                  string
	CertificateAuthorityBase64 string
	Token                      string
}

func (KubeconfigParams) WriteKubeconfig

func (p KubeconfigParams) WriteKubeconfig(outputPath string, t *template.Template) error

Jump to

Keyboard shortcuts

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