generate

package
v3.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(ctx context.Context, c *rest.Config, namespace, serviceAccount string) ([]byte, error)

func NewAdminKubeConfigCmd

func NewAdminKubeConfigCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewAdminKubeConfigCmd creates a new command

func NewGenerateCmd

func NewGenerateCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewGenerateCmd creates a new cobra command

Types

type AdminKubeConfigCmd

type AdminKubeConfigCmd struct {
	*flags.GlobalFlags

	Namespace      string
	ServiceAccount string
	// contains filtered or unexported fields
}

AdminKubeConfigCmd holds the cmd flags

func (*AdminKubeConfigCmd) Run

func (cmd *AdminKubeConfigCmd) Run(ctx context.Context, c *rest.Config, cobraCmd *cobra.Command, args []string) error

Run executes the command

Jump to

Keyboard shortcuts

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