kubeconfig

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 82

Documentation

Overview

Package kubeconfig defines and generates the kubeconfig assets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDialContext added in v0.9.153

func CreateDialContext(d dialer, apiServerIPOverride string) func(ctx context.Context, network, address string) (net.Conn, error)

CreateDialContext overrides the kubeconfig api server address with the provided ip address on the same port.

Types

type AdminClient added in v0.9.2

type AdminClient struct {
	// contains filtered or unexported fields
}

AdminClient is the asset for the admin kubeconfig.

func (*AdminClient) Dependencies added in v0.9.2

func (k *AdminClient) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*AdminClient) Files added in v0.9.2

func (k *AdminClient) Files() []*asset.File

Files returns the files generated by the asset.

func (*AdminClient) Generate added in v0.9.2

func (k *AdminClient) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

func (*AdminClient) Load added in v0.9.2

func (k *AdminClient) Load(f asset.FileFetcher) (found bool, err error)

Load returns the kubeconfig from disk.

func (*AdminClient) Name added in v0.9.2

func (k *AdminClient) Name() string

Name returns the human-friendly name of the asset.

type AdminInternalClient added in v0.9.2

type AdminInternalClient struct {
	// contains filtered or unexported fields
}

AdminInternalClient is the asset for the admin kubeconfig.

func (*AdminInternalClient) Dependencies added in v0.9.2

func (k *AdminInternalClient) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*AdminInternalClient) Files added in v0.9.2

func (k *AdminInternalClient) Files() []*asset.File

Files returns the files generated by the asset.

func (*AdminInternalClient) Generate added in v0.9.2

func (k *AdminInternalClient) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

func (*AdminInternalClient) Load added in v0.9.2

func (k *AdminInternalClient) Load(f asset.FileFetcher) (found bool, err error)

Load returns the kubeconfig from disk.

func (*AdminInternalClient) Name added in v0.9.2

func (k *AdminInternalClient) Name() string

Name returns the human-friendly name of the asset.

type AgentAdminClient added in v0.9.2

type AgentAdminClient struct {
	AdminClient
}

AgentAdminClient is the asset for the agent admin kubeconfig.

func (*AgentAdminClient) Dependencies added in v0.9.2

func (k *AgentAdminClient) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*AgentAdminClient) Files added in v0.9.2

func (k *AgentAdminClient) Files() []*asset.File

Files returns the files generated by the asset.

func (*AgentAdminClient) Generate added in v0.9.2

func (k *AgentAdminClient) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

type ImageBasedAdminClient added in v0.90.17

type ImageBasedAdminClient struct {
	AdminClient
}

ImageBasedAdminClient is the asset for the image-based admin kubeconfig.

func (*ImageBasedAdminClient) Dependencies added in v0.90.17

func (k *ImageBasedAdminClient) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*ImageBasedAdminClient) Files added in v0.90.17

func (k *ImageBasedAdminClient) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageBasedAdminClient) Generate added in v0.90.17

func (k *ImageBasedAdminClient) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

type Kubelet added in v0.2.0

type Kubelet struct {
	// contains filtered or unexported fields
}

Kubelet is the asset for the kubelet kubeconfig.

func (*Kubelet) Dependencies added in v0.2.0

func (k *Kubelet) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*Kubelet) Files added in v0.2.0

func (k *Kubelet) Files() []*asset.File

Files returns the files generated by the asset.

func (*Kubelet) Generate added in v0.2.0

func (k *Kubelet) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

func (*Kubelet) Load added in v0.3.0

func (k *Kubelet) Load(asset.FileFetcher) (bool, error)

Load is a no-op because kubelet kubeconfig is not written to disk.

func (*Kubelet) Name added in v0.2.0

func (k *Kubelet) Name() string

Name returns the human-friendly name of the asset.

type LoopbackClient added in v0.9.2

type LoopbackClient struct {
	// contains filtered or unexported fields
}

LoopbackClient is the asset for the admin kubeconfig.

func (*LoopbackClient) Dependencies added in v0.9.2

func (k *LoopbackClient) Dependencies() []asset.Asset

Dependencies returns the dependency of the kubeconfig.

func (*LoopbackClient) Files added in v0.9.2

func (k *LoopbackClient) Files() []*asset.File

Files returns the files generated by the asset.

func (*LoopbackClient) Generate added in v0.9.2

func (k *LoopbackClient) Generate(_ context.Context, parents asset.Parents) error

Generate generates the kubeconfig.

func (*LoopbackClient) Load added in v0.9.2

func (k *LoopbackClient) Load(f asset.FileFetcher) (found bool, err error)

Load returns the kubeconfig from disk.

func (*LoopbackClient) Name added in v0.9.2

func (k *LoopbackClient) Name() string

Name returns the human-friendly name of the asset.

Jump to

Keyboard shortcuts

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