reaper

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 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 client.ClusterRolesInterface, clusterBindingClient client.ClusterRoleBindingsInterface, bindingClient client.RoleBindingsNamespacer) kubectl.Reaper

func NewRoleReaper

func NewRoleReaper(roleClient client.RolesNamespacer, bindingClient client.RoleBindingsNamespacer) 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