controller

package
v0.0.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleOptions

type RoleOptions struct {
	JxClient   versioned.Interface
	KubeClient kubernetes.Interface

	NoWatch bool
	TeamNs  string

	Roles           map[string]*rbacv1.Role
	EnvRoleBindings map[string]*v1.EnvironmentRoleBinding
	// contains filtered or unexported fields
}

RoleOptions the command line options

func NewRoleController

func NewRoleController() (*RoleOptions, error)

func (*RoleOptions) Run

func (o *RoleOptions) Run() error

func (*RoleOptions) UpsertEnvironmentRoleBinding

func (o *RoleOptions) UpsertEnvironmentRoleBinding(newEnv *v1.EnvironmentRoleBinding) error

UpsertEnvironmentRoleBinding processes an insert/update of the EnvironmentRoleBinding resource its public so that we can make testing easier

func (*RoleOptions) UpsertRole

func (o *RoleOptions) UpsertRole(newRole *rbacv1.Role) error

UpsertRole processes the insert/update of a Role this function is public for easier testing

Jump to

Keyboard shortcuts

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