Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func GetUserClientRolesDesiredState(state *common.UserState, clientRoles map[string][]string, realmName string) []common.ClusterAction
- func GetUserRealmRolesDesiredState(state *common.UserState, realmRoles []string, realmName string) []common.ClusterAction
- func SyncRolesForClient(state *common.UserState, clientID string, clientRoles map[string][]string, ...) []common.ClusterAction
- type KeycloakuserReconciler
- type ReconcileKeycloakUser
- type Reconciler
Constants ¶
const ( ControllerName = "controller_keycloakuser" RequeueDelayError = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 SyncRolesForClient ¶
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 ¶
func (i *KeycloakuserReconciler) Reconcile(state *common.UserState, cr *v1alpha1.KeycloakUser) common.DesiredClusterState
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 ¶
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
}