common

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerHelper

type ControllerHelper struct {
	client.Client
	Log logr.Logger
}

func NewControllerHelper

func NewControllerHelper(client client.Client) *ControllerHelper

func (*ControllerHelper) AddFinalizerIfNotPresent

func (ch *ControllerHelper) AddFinalizerIfNotPresent(instance crutils.Instance,
	unwrappedInstance client.Object) error

func (*ControllerHelper) DeleteClusterRoleBindings

func (ch *ControllerHelper) DeleteClusterRoleBindings(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error

func (*ControllerHelper) DeleteClusterRoles

func (ch *ControllerHelper) DeleteClusterRoles(clusterRoles []*rbacv1.ClusterRole) error

func (*ControllerHelper) HasFinalizer

func (ch *ControllerHelper) HasFinalizer(instance crutils.Instance) (bool, error)

func (*ControllerHelper) ReconcileClusterRole

func (ch *ControllerHelper) ReconcileClusterRole(clusterRoles []*rbacv1.ClusterRole) error

func (*ControllerHelper) ReconcileClusterRoleBinding

func (ch *ControllerHelper) ReconcileClusterRoleBinding(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error

func (*ControllerHelper) RemoveFinalizer

func (ch *ControllerHelper) RemoveFinalizer(instance crutils.Instance,
	unwrappedInstance client.Object) error

Jump to

Keyboard shortcuts

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