controllers

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IamroleReconciler

type IamroleReconciler struct {
	client.Client
	IAMClient *awsapi.IAM
	Recorder  record.EventRecorder
}

IamroleReconciler reconciles a Iamrole object

func (*IamroleReconciler) ConstructCreateIAMRoleInput added in v0.0.4

func (r *IamroleReconciler) ConstructCreateIAMRoleInput(ctx context.Context, iamRole *iammanagerv1alpha1.Iamrole, roleName string) (*awsapi.IAMRoleRequest, *iammanagerv1alpha1.IamroleStatus, error)

ConstructInput function constructs input for

func (*IamroleReconciler) HandleReconcile

func (r *IamroleReconciler) HandleReconcile(ctx context.Context, req ctrl.Request, iamRole *iammanagerv1alpha1.Iamrole) (ctrl.Result, error)

HandleReconcile function handles all the reconcile

func (*IamroleReconciler) Reconcile

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

func (*IamroleReconciler) ReconcileAllReadyStateIamRoles added in v0.15.0

func (r *IamroleReconciler) ReconcileAllReadyStateIamRoles(ctx context.Context)

func (*IamroleReconciler) SetupWithManager

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

SetupWithManager sets up manager with controller GenerationChangedPredicate will take care of not allowing to trigger reconcile for every time status update happens

func (*IamroleReconciler) StartControllerReconcileCronJob added in v0.15.0

func (r *IamroleReconciler) StartControllerReconcileCronJob(ctx context.Context) error

*

  • This will start a go routine that will run every "ControllerDesiredFrequency" seconds.

func (*IamroleReconciler) UpdateMeta

func (r *IamroleReconciler) UpdateMeta(ctx context.Context, iamRole *iammanagerv1alpha1.Iamrole)

UpdateMeta function updates the metadata (mostly finalizers in this case)

func (*IamroleReconciler) UpdateStatus

func (r *IamroleReconciler) UpdateStatus(ctx context.Context, iamRole *iammanagerv1alpha1.Iamrole, status iammanagerv1alpha1.IamroleStatus, requeueTime float64) (ctrl.Result, error)

UpdateStatus function updates the status based on the process step

type StatusUpdatePredicate

type StatusUpdatePredicate struct {
	predicate.Funcs
}

func (StatusUpdatePredicate) Update

Update implements default UpdateEvent filter for validating generation change

Jump to

Keyboard shortcuts

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