controllers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrganizationMembersReconciler added in v0.7.0

type OrganizationMembersReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme

	// UserPrefix is the prefix applied to the user in the RoleBinding.subjects.name.
	UserPrefix  string
	MemberRoles []string
}

OrganizationMembersReconciler reconciles OrganizationMembers resources

func (*OrganizationMembersReconciler) Reconcile added in v0.7.0

Reconcile reacts on changes of users and mirrors these changes to Keycloak

func (*OrganizationMembersReconciler) SetupWithManager added in v0.7.0

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

SetupWithManager sets up the controller with the Manager.

type UserReconciler

type UserReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme

	// UserPrefix is the prefix applied to the user in the ClusterRoleBinding.subjects.name.
	UserPrefix string
	// RolePrefix is the prefix applied to the cluster role and the according role binding.
	// Should help prevent cluster role name collisions.
	RolePrefix string
}

UserReconciler reconciles a User object

func (*UserReconciler) Reconcile

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

Reconcile reacts on changes of users and mirrors these changes to Keycloak

func (*UserReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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