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 *kapi.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 *kapi.DeleteOptions) error
Stop on a reaper is actually used for deletion. In this case, we'll delete referencing rolebindings then delete the role.
Click to show internal directories.
Click to hide internal directories.