commands

package
v0.0.0-...-d0d6462 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterCommand

func NewClusterCommand() *cobra.Command

NewClusterCommand returns a new instance of an `manager cluster` command

func NewClusterRegisterCommand

func NewClusterRegisterCommand() *cobra.Command

NewClusterRegisterCommand registers the target cluster with the manager. Target cluster can be the same cluster where manager resides (provide --self true) If service account is not provided manager will create service account, cluster role and role binding Service Account must exists in "kube-system" namespace

func NewClusterUnregisterCommand

func NewClusterUnregisterCommand() *cobra.Command

NewClusterUnregisterCommand unregisters the target cluster from manager For now, lets make sure user who is unregistering the cluster does have cluster admin access on target cluster. This should be updated once we have RBAC on manager itself to see if user is authorized unregister a particular cluster At the moment, we concentrate only on removing the created rbac resources in the target clusters.

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns a new instance of an manager command

Types

This section is empty.

Jump to

Keyboard shortcuts

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