Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/v1alpha1/clusterkeycloak_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/epam/edp-keycloak-operator/api/common"
keycloakApi "github.com/epam/edp-keycloak-operator/api/v1"
)

// ClusterKeycloakSpec defines the desired state of ClusterKeycloak.
Expand Down Expand Up @@ -36,7 +37,7 @@ type ClusterKeycloakSpec struct {

func (in *ClusterKeycloak) GetAdminType() string {
if in.Spec.AdminType == "" {
in.Spec.AdminType = KeycloakAdminTypeUser
in.Spec.AdminType = keycloakApi.KeycloakAdminTypeUser
}

return in.Spec.AdminType
Expand Down
36 changes: 36 additions & 0 deletions api/v1alpha1/clusterkeycloakrealm_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,42 @@ type RealmLocalization struct {
InternationalizationEnabled *bool `json:"internationalizationEnabled"`
}

type RealmEventConfig struct {
// AdminEventsDetailsEnabled indicates whether to enable detailed admin events.
// +optional
AdminEventsDetailsEnabled bool `json:"adminEventsDetailsEnabled,omitempty"`

// AdminEventsEnabled indicates whether to enable admin events.
// +optional
AdminEventsEnabled bool `json:"adminEventsEnabled,omitempty"`

// EnabledEventTypes is a list of event types to enable.
// +optional
// +nullable.
EnabledEventTypes []string `json:"enabledEventTypes,omitempty"`

// EventsEnabled indicates whether to enable events.
// +optional
EventsEnabled bool `json:"eventsEnabled,omitempty"`

// EventsExpiration is the number of seconds after which events expire.
// +optional
EventsExpiration int `json:"eventsExpiration,omitempty"`

// EventsListeners is a list of event listeners to enable.
// +optional
// +nullable.
EventsListeners []string `json:"eventsListeners,omitempty"`
}

type PasswordPolicy struct {
// Type of password policy.
Type string `json:"type"`

// Value of password policy.
Value string `json:"value"`
}

// ClusterKeycloakRealmStatus defines the observed state of ClusterKeycloakRealm.
type ClusterKeycloakRealmStatus struct {
// +optional
Expand Down
85 changes: 0 additions & 85 deletions api/v1alpha1/keycloak_types.go

This file was deleted.

15 changes: 0 additions & 15 deletions api/v1alpha1/keycloak_types_test.go

This file was deleted.

111 changes: 0 additions & 111 deletions api/v1alpha1/keycloakauthflow_types.go

This file was deleted.

Loading
Loading