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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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