kubelogin

package
v0.0.0-...-173a1fd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

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

Cli is a wrapper around the kubelogin CLI

func NewCli

func NewCli(commandRunner exec.CommandRunner) *Cli

NewCli creates a new instance of the kubelogin CLI wrapper

func (*Cli) CheckInstalled

func (cli *Cli) CheckInstalled(ctx context.Context) error

Checks whether or not the kubelogin CLI is installed and available within the PATH

func (*Cli) ConvertKubeConfig

func (c *Cli) ConvertKubeConfig(ctx context.Context, options *ConvertOptions) error

ConvertKubeConfig converts a kubeconfig file to use the exec auth module

func (*Cli) InstallUrl

func (cli *Cli) InstallUrl() string

Returns the installation URL to install the kubelogin CLI

func (*Cli) Name

func (cli *Cli) Name() string

Gets the name of the Tool

type ConvertOptions

type ConvertOptions struct {
	// Login method to use (defaults to azd)
	Login string
	// AAD tenant ID
	TenantId string
	// The name of the kubeconfig context to use
	Context string
	// KubeConfig is the path to the kube config file
	KubeConfig string
}

ConvertOptions are the options for converting a kubeconfig file

Jump to

Keyboard shortcuts

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