reaper

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterRoleReaper

func NewClusterRoleReaper(roleClient authclient.ClusterRolesGetter, clusterBindingClient authclient.ClusterRoleBindingsGetter, bindingClient authclient.RoleBindingsGetter) kubectl.Reaper

func NewRoleReaper

func NewRoleReaper(roleClient authclient.RolesGetter, bindingClient authclient.RoleBindingsGetter) kubectl.Reaper

Types

type ClusterRoleReaper

type ClusterRoleReaper struct {
	// contains filtered or unexported fields
}

func (*ClusterRoleReaper) Stop

func (r *ClusterRoleReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *metav1.DeleteOptions) error

Stop on a reaper is actually used for deletion. In this case, we'll delete referencing clusterroleclusterBindings then delete the clusterrole.

type RoleReaper

type RoleReaper struct {
	// contains filtered or unexported fields
}

func (*RoleReaper) Stop

func (r *RoleReaper) Stop(namespace, name string, timeout time.Duration, gracePeriod *metav1.DeleteOptions) error

Stop on a reaper is actually used for deletion. In this case, we'll delete referencing rolebindings then delete the role.

Jump to

Keyboard shortcuts

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