config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfig

func GetKubeConfig(ctx context.Context, runtime runtimes.Runtime,
	clusters []*K3D.Cluster, notEncode bool,
) (map[string]string, error)

GetKubeConfig fetches kubernetes config from the specified clusters.

Types

type Config

type Config struct {
	Cluster []*k3dCluster.Config `json:"cluster,omitempty" mapstructure:"cluster"`
	Encode  bool                 `json:"encode,omitempty" mapstructure:"encode"`
	All     bool                 `json:"all,omitempty" mapstructure:"all"`
}

Config helps in storing kubeconfig information.

func (*Config) GetKubeConfig

func (cfg *Config) GetKubeConfig(ctx context.Context, runtime runtimes.Runtime) (map[string]string, error)

GetKubeConfig fetches kubernetes config from the specified clusters.

Jump to

Keyboard shortcuts

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