This commit is contained in:
2026-09-28 16:28:35 +01:00
parent 666b1ff877
commit e27aa106fd
76 changed files with 5634 additions and 906 deletions
@@ -30,20 +30,21 @@
"additionalProperties": false
},
"definition": {
"description": "Definition contains the Keycloak ClientScopeRepresentation",
"description": "Definition contains the Keycloak ClientScopeRepresentation. Set the client\nscope name via spec.name.",
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"name": {
"description": "Name is the client scope name in Keycloak. Immutable once set.",
"minLength": 1,
"type": "string"
},
"realmRef": {
"description": "RealmRef is a reference to a KeycloakRealm\nOne of realmRef or clusterRealmRef must be specified",
"properties": {
"name": {
"description": "Name of the resource",
"type": "string"
},
"namespace": {
"description": "Namespace of the resource (optional, defaults to the same namespace)",
"type": "string"
}
},
"required": [
@@ -54,14 +55,29 @@
}
},
"required": [
"definition"
"definition",
"name"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "exactly one of realmRef or clusterRealmRef must be set",
"rule": "has(self.realmRef) != has(self.clusterRealmRef)"
},
{
"message": "spec.name is immutable once set",
"rule": "!has(oldSelf.name) || self.name == oldSelf.name"
}
],
"additionalProperties": false
},
"status": {
"description": "KeycloakClientScopeStatus defines the observed state of KeycloakClientScope",
"properties": {
"clientScopeName": {
"description": "ClientScopeName is the resolved client scope name in Keycloak",
"type": "string"
},
"conditions": {
"description": "Conditions represent the latest available observations",
"items": {