Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
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 bool
// Name of the image pull secret to generate
ImagePullSecret string
}
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
Click to show internal directories.
Click to hide internal directories.