Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
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
Click to show internal directories.
Click to hide internal directories.