keycloak

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: EUPL-1.2 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutateIngress

func MutateIngress(ctx context.Context, ingress *netv1.Ingress, host, serviceName string, tls bool) error

func MutateRealmRepresentation

func MutateRealmRepresentation(realm keycloakv1alpha1.Realm, realmRepresentation *gocloak.RealmRepresentation)

Types

type RealmReconciler

type RealmReconciler struct {
	client.Client
	Config configv1alpha1.KeycloakConfig
	// contains filtered or unexported fields
}

RealmReconciler reconciles a Realm object

func (*RealmReconciler) CreateOrPatchIDPSecret

func (r *RealmReconciler) CreateOrPatchIDPSecret(ctx context.Context, c *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm, provider *configv1alpha1.KeycloakProvider, secret *corev1.Secret) error

func (*RealmReconciler) CreateOrUpdateAdminGroup

func (r *RealmReconciler) CreateOrUpdateAdminGroup(ctx context.Context, c *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm) error

func (*RealmReconciler) CreateOrUpdateGroupsClientScope

func (r *RealmReconciler) CreateOrUpdateGroupsClientScope(ctx context.Context, c *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm) error

func (*RealmReconciler) CreateOrUpdateRealmUser

func (r *RealmReconciler) CreateOrUpdateRealmUser(ctx context.Context, keycloakClient *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm, secret *corev1.Secret) error

func (*RealmReconciler) CreateOrUpdateUserAdminRole

func (r *RealmReconciler) CreateOrUpdateUserAdminRole(ctx context.Context, c *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm) error

func (*RealmReconciler) Name

func (r *RealmReconciler) Name() string

func (*RealmReconciler) OwnedConditions

func (r *RealmReconciler) OwnedConditions() []string

func (*RealmReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Realm object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.0/pkg/reconcile

func (*RealmReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*RealmReconciler) UpdateRoleListClientScopeProtocolMapper

func (r *RealmReconciler) UpdateRoleListClientScopeProtocolMapper(ctx context.Context, c *gocloak.GoCloak, token string, realm keycloakv1alpha1.Realm) error

Jump to

Keyboard shortcuts

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