Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeycloakClient ¶
type KeycloakClient interface { PutGroup(ctx context.Context, group keycloak.Group) (keycloak.Group, error) DeleteGroup(ctx context.Context, groupName string) error ListGroups(ctx context.Context) ([]keycloak.Group, error) }
KeycloakClient is an abstraction to interact with the Keycloak API
type OrganizationReconciler ¶
type OrganizationReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme Keycloak KeycloakClient // ClusteRoles to give to group members when importing SyncClusterRoles []string }
OrganizationReconciler reconciles a Organization object
func (*OrganizationReconciler) Reconcile ¶
func (r *OrganizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts on changes of Organizations and OrganizationMembers and mirrors these changes to groups in Keycloak
func (*OrganizationReconciler) SetupWithManager ¶
func (r *OrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.