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 ¶
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 ¶
Returns the installation URL to install the kubelogin CLI
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
Click to show internal directories.
Click to hide internal directories.