controllers

package
v0.0.0-...-1d6255f Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileDynamicClusterRole

func ReconcileDynamicClusterRole(dynamicClusterRole *rbacv1alpha1.DynamicClusterRole, client client.Client, scheme *runtime.Scheme, logger logr.Logger, cache *helpers.ResourceCache) (ctrl.Result, error)

func ReconcileDynamicRole

func ReconcileDynamicRole(dynamicRole *rbacv1alpha1.DynamicRole, client client.Client, scheme *runtime.Scheme, logger logr.Logger, cache *helpers.ResourceCache) (ctrl.Result, error)

func UpdateAllDynamicResources

func UpdateAllDynamicResources(client client.Client, log logr.Logger, scheme *runtime.Scheme, cache *helpers.ResourceCache) (ctrl.Result, error)

UpdateAllDynamicResources loops through all DynamicRoles and DynamicClusterRoles and updates their rules/specs as required based on current cache info

Types

type ClusterRoleReconciler

type ClusterRoleReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Cache  *helpers.ResourceCache
}

ClusterRoleReconciler reconciles a ClusterRole object

func (*ClusterRoleReconciler) Reconcile

func (r *ClusterRoleReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ClusterRoleReconciler) SetupWithManager

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

type CustomResourceDefinitionReconciler

type CustomResourceDefinitionReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Cache  *helpers.ResourceCache
}

CustomResourceDefinitionReconciler reconciles a CustomResourceDefinition object

func (*CustomResourceDefinitionReconciler) Reconcile

func (*CustomResourceDefinitionReconciler) SetupWithManager

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

type DynamicClusterRoleReconciler

type DynamicClusterRoleReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Cache  *helpers.ResourceCache
}

DynamicClusterRoleReconciler reconciles a DynamicClusterRole object

func (*DynamicClusterRoleReconciler) Reconcile

func (*DynamicClusterRoleReconciler) SetupWithManager

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

type DynamicRoleReconciler

type DynamicRoleReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Cache  *helpers.ResourceCache
}

DynamicRoleReconciler reconciles a DynamicRole object

func (*DynamicRoleReconciler) Reconcile

func (r *DynamicRoleReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*DynamicRoleReconciler) SetupWithManager

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

type RoleReconciler

type RoleReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Cache  *helpers.ResourceCache
}

RoleReconciler reconciles a Role object

func (*RoleReconciler) Reconcile

func (r *RoleReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*RoleReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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