authorize_cluster

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand creates a new command for authorizing a cluster

func NewGeneratorCommand

func NewGeneratorCommand(o *GeneratorOptions) *cobra.Command

NewGeneratorCommand creates a command for generating the cluster authorization secret

Types

type GeneratorOptions

type GeneratorOptions struct {
	// Config is the Optimize Configuration used to generate the authorization secret
	Config *config.OptimizeConfig
	// Printer is the resource printer used to render generated objects
	Printer commander.ResourcePrinter
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	// Name is the name of the secret to generate
	Name string
	// ClientName is the name of the client to register with the authorization server
	ClientName string
	// AllowUnauthorized generates a secret with no authorization information
	AllowUnauthorized bool
}

GeneratorOptions are the configuration options for generating the cluster authorization secret

type Options

type Options struct {
	GeneratorOptions
}

Options are the configuration options for authorizing a cluster

Jump to

Keyboard shortcuts

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