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.
Click to show internal directories.
Click to hide internal directories.