Skip to content

Commit 7b70159

Browse files
zmotsoSergK
authored andcommitted
feat: Remove deprecated v1alpha1 versions from the operator (#86)
1 parent 7762f24 commit 7b70159

File tree

50 files changed

+61
-8443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+61
-8443
lines changed

api/v1alpha1/clusterkeycloak_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
55

66
"github.com/epam/edp-keycloak-operator/api/common"
7+
keycloakApi "github.com/epam/edp-keycloak-operator/api/v1"
78
)
89

910
// ClusterKeycloakSpec defines the desired state of ClusterKeycloak.
@@ -36,7 +37,7 @@ type ClusterKeycloakSpec struct {
3637

3738
func (in *ClusterKeycloak) GetAdminType() string {
3839
if in.Spec.AdminType == "" {
39-
in.Spec.AdminType = KeycloakAdminTypeUser
40+
in.Spec.AdminType = keycloakApi.KeycloakAdminTypeUser
4041
}
4142

4243
return in.Spec.AdminType

api/v1alpha1/clusterkeycloakrealm_types.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,42 @@ type RealmLocalization struct {
9292
InternationalizationEnabled *bool `json:"internationalizationEnabled"`
9393
}
9494

95+
type RealmEventConfig struct {
96+
// AdminEventsDetailsEnabled indicates whether to enable detailed admin events.
97+
// +optional
98+
AdminEventsDetailsEnabled bool `json:"adminEventsDetailsEnabled,omitempty"`
99+
100+
// AdminEventsEnabled indicates whether to enable admin events.
101+
// +optional
102+
AdminEventsEnabled bool `json:"adminEventsEnabled,omitempty"`
103+
104+
// EnabledEventTypes is a list of event types to enable.
105+
// +optional
106+
// +nullable.
107+
EnabledEventTypes []string `json:"enabledEventTypes,omitempty"`
108+
109+
// EventsEnabled indicates whether to enable events.
110+
// +optional
111+
EventsEnabled bool `json:"eventsEnabled,omitempty"`
112+
113+
// EventsExpiration is the number of seconds after which events expire.
114+
// +optional
115+
EventsExpiration int `json:"eventsExpiration,omitempty"`
116+
117+
// EventsListeners is a list of event listeners to enable.
118+
// +optional
119+
// +nullable.
120+
EventsListeners []string `json:"eventsListeners,omitempty"`
121+
}
122+
123+
type PasswordPolicy struct {
124+
// Type of password policy.
125+
Type string `json:"type"`
126+
127+
// Value of password policy.
128+
Value string `json:"value"`
129+
}
130+
95131
// ClusterKeycloakRealmStatus defines the observed state of ClusterKeycloakRealm.
96132
type ClusterKeycloakRealmStatus struct {
97133
// +optional

api/v1alpha1/keycloak_types.go

Lines changed: 0 additions & 85 deletions
This file was deleted.

api/v1alpha1/keycloak_types_test.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

api/v1alpha1/keycloakauthflow_types.go

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)