grant_permissions

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 11 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 granting controller permissions

func NewGeneratorCommand

func NewGeneratorCommand(o *GeneratorOptions) *cobra.Command

NewGeneratorCommand creates a command for generating the controller role definitions

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

	// SkipDefault bypasses the default permissions (get/patch on config maps, stateful sets, and deployments)
	SkipDefault bool
	// CreateTrialNamespaces includes additional permissions to allow the controller to create trial namespaces
	CreateTrialNamespaces bool
	// NamespaceSelector generates namespaced bindings instead of cluster bindings
	NamespaceSelector string
	// IncludeManagerRole generates an additional binding to the manager role for each matched namespace
	IncludeManagerRole bool
	// CreateInClusterGenerationRBAC includes the additional permissions to create the service account, clusterrole, clusterorlebinding
	// configmaps, and experiments for the in cluster experiment generation and creation.
	CreateInClusterGenerationRBAC bool
}

GeneratorOptions are the configuration options for generating the controller role definitions

type Options

type Options struct {
	GeneratorOptions
}

Options are the configuration options for granting controller permissions

Jump to

Keyboard shortcuts

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