kubectl_sa_access

package
v0.0.0-...-21b2222 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditKubeConfig

func EditKubeConfig(info CmdInfo) (err error)

func GenerateKubeConfig

func GenerateKubeConfig(info CmdInfo) (err error)

Types

type CmdInfo

type CmdInfo struct {
	CurrentContextName string
	TargetNamespace    string
	ServiceAccountName string
	InPlace            bool
}

func ParseArgs

func ParseArgs() (info CmdInfo, err error)

type KubeconfigTemplate

type KubeconfigTemplate struct {
	ContextName        string
	ClusterName        string
	Cluster            kubeplug.Cluster
	Namespace          string
	ServiceAccountName string
	Token              string
}

Jump to

Keyboard shortcuts

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