{
  "description": "KeycloakRealmComponent is the Schema for the keycloak component API.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "KeycloakComponentSpec defines the desired state of KeycloakRealmComponent.",
      "properties": {
        "config": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Config is a map of component configuration.\nMap key is a name of configuration property, map value is an array value of configuration properties.\nAny configuration property can be a reference to k8s secret, in this case the property should be in format $secretName:secretKey.",
          "example": {
            "bindCredential": "[\"$clientSecret:secretKey\"]",
            "bindDn": "[\"provider-client\"]"
          },
          "nullable": true,
          "type": "object"
        },
        "name": {
          "description": "Name of keycloak component.",
          "type": "string"
        },
        "parentRef": {
          "description": "ParentRef specifies a parent resource.\nIf not specified, then parent is realm specified in realm field.",
          "nullable": true,
          "properties": {
            "kind": {
              "default": "KeycloakRealm",
              "description": "Kind is a kind of parent component. By default, it is KeycloakRealm.",
              "enum": [
                "KeycloakRealm",
                "KeycloakRealmComponent"
              ],
              "type": "string"
            },
            "name": {
              "description": "Name is a name of parent component custom resource.\nFor example, if Kind is KeycloakRealm, then Name is name of KeycloakRealm custom resource.",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "providerId": {
          "description": "ProviderID is a provider ID of component.",
          "type": "string"
        },
        "providerType": {
          "description": "ProviderType is a provider type of component.",
          "type": "string"
        },
        "realmRef": {
          "description": "RealmRef is reference to Realm custom resource.",
          "properties": {
            "kind": {
              "default": "KeycloakRealm",
              "description": "Kind specifies the kind of the Keycloak resource.",
              "enum": [
                "KeycloakRealm",
                "ClusterKeycloakRealm"
              ],
              "type": "string"
            },
            "name": {
              "description": "Name specifies the name of the Keycloak resource.",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "name",
        "providerId",
        "providerType",
        "realmRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "KeycloakComponentStatus defines the observed state of KeycloakRealmComponent.",
      "properties": {
        "failureCount": {
          "format": "int64",
          "type": "integer"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
