keycloakuser

package
v0.0.0-...-4b9abfb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName    = "controller_keycloakuser"
	RequeueDelayError = 5 * time.Second
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new KeycloakUser Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetUserClientRolesDesiredState

func GetUserClientRolesDesiredState(state *common.UserState, clientRoles map[string][]string, realmName string) []common.ClusterAction

func GetUserRealmRolesDesiredState

func GetUserRealmRolesDesiredState(state *common.UserState, realmRoles []string, realmName string) []common.ClusterAction

func SyncRolesForClient

func SyncRolesForClient(state *common.UserState, clientID string, clientRoles map[string][]string, realmName string) []common.ClusterAction

Types

type KeycloakuserReconciler

type KeycloakuserReconciler struct {
	Realm    v1alpha1.KeycloakRealm
	Keycloak v1alpha1.Keycloak
}

func NewKeycloakuserReconciler

func NewKeycloakuserReconciler(keycloak v1alpha1.Keycloak, realm v1alpha1.KeycloakRealm) *KeycloakuserReconciler

func (*KeycloakuserReconciler) Reconcile

type ReconcileKeycloakUser

type ReconcileKeycloakUser struct {
	// contains filtered or unexported fields
}

ReconcileKeycloakUser reconciles a KeycloakUser object

func (*ReconcileKeycloakUser) ManageError

func (r *ReconcileKeycloakUser) ManageError(user *kc.KeycloakUser, issue error) (reconcile.Result, error)

func (*ReconcileKeycloakUser) Reconcile

func (r *ReconcileKeycloakUser) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a KeycloakUser object and makes changes based on the state read and what is in the KeycloakUser.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

type Reconciler

type Reconciler interface {
	Reconcile(cr *v1alpha1.KeycloakUser) error
}

Jump to

Keyboard shortcuts

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