controllers

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceLockerReconciler

type ResourceLockerReconciler struct {
	lockedresourcecontroller.EnforcingReconciler
	Log logr.Logger
}

ResourceLockerReconciler reconciles a ResourceLocker object

func (*ResourceLockerReconciler) IsInitialized

func (r *ResourceLockerReconciler) IsInitialized(instance *redhatcopv1alpha1.ResourceLocker) bool

IsInitialized will accept a ResourceLocker object and return true when no further changes to the object have been taken to make sure it looks as expected. Possible changes include setting default values for the serviceAccountRef, patchStrategy, or namespace values for objects/patches if they are empty. This is changed at the custom resource (by the operator) so that the user is made aware of how those values are being interpreted by the operator logic.

This will return false in all cases where the object has undergone a modification, and will return true if no modification takes place.

func (*ResourceLockerReconciler) Reconcile

func (r *ResourceLockerReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=redhatcop.redhat.io,resources=resourcelockers,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=redhatcop.redhat.io,resources=resourcelockers/status,verbs=get;update;patch +kubebuilder:rbac:groups="",resources=serviceaccounts;secrets,verbs=get;list;watch +kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create;patch

func (*ResourceLockerReconciler) SetupWithManager

func (r *ResourceLockerReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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