Skip to content

Commit

Permalink
Update CRD validation for Keycloak 26
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Feb 25, 2025
1 parent b470343 commit 2218498
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apis/vshn/v1/dbaas_vshn_keycloak.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ type VSHNKeycloakServiceSpec struct {
// +kubebuilder:default="/"
RelativePath string `json:"relativePath,omitempty"`

// +kubebuilder:validation:Enum="25"
// +kubebuilder:default="25"
// +kubebuilder:validation:Enum="25";"26"
// +kubebuilder:default="26"

// Version contains supported version of keycloak.
// Multiple versions are supported. The latest version 23 is the default version.
// Multiple versions are supported. The latest version 26 is the default version.
Version string `json:"version,omitempty"`

// +kubebuilder:validation:Enum="besteffort";"guaranteed"
Expand Down
5 changes: 3 additions & 2 deletions crds/vshn.appcat.vshn.io_vshnkeycloaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9960,12 +9960,13 @@ spec:
- guaranteed
type: string
version:
default: "25"
default: "26"
description: |-
Version contains supported version of keycloak.
Multiple versions are supported. The latest version 23 is the default version.
Multiple versions are supported. The latest version 26 is the default version.
enum:
- "25"
- "26"
type: string
type: object
default: {}
Expand Down
5 changes: 3 additions & 2 deletions crds/vshn.appcat.vshn.io_xvshnkeycloaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11757,12 +11757,13 @@ spec:
- guaranteed
type: string
version:
default: "25"
default: "26"
description: |-
Version contains supported version of keycloak.
Multiple versions are supported. The latest version 23 is the default version.
Multiple versions are supported. The latest version 26 is the default version.
enum:
- "25"
- "26"
type: string
type: object
size:
Expand Down

0 comments on commit 2218498

Please sign in to comment.