---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.15.0
  name: keycloakrealmcomponents.v1.edp.epam.com
spec:
  group: v1.edp.epam.com
  names:
    kind: KeycloakRealmComponent
    listKind: KeycloakRealmComponentList
    plural: keycloakrealmcomponents
    singular: keycloakrealmcomponent
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Reconcilation status
      jsonPath: .status.value
      name: Status
      type: string
    name: v1
    schema:
      openAPIV3Schema:
        description: KeycloakRealmComponent is the Schema for the keycloak component
          API.
        properties:
          apiVersion:
            description: |-
              APIVersion defines the versioned schema of this representation of an object.
              Servers should convert recognized schemas to the latest internal value, and
              may reject unrecognized values.
              More 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.
              Servers may infer this from the endpoint the client submits requests to.
              Cannot be updated.
              In CamelCase.
              More 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.
                  Map key is a name of configuration property, map value is an array value of configuration properties.
                  Any 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.
                  If 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.
                      For example, if Kind is KeycloakRealm, then Name is name of KeycloakRealm custom resource.
                    type: string
                required:
                - name
                type: object
              providerId:
                description: ProviderID is a provider ID of component.
                type: string
              providerType:
                description: ProviderType is a provider type of component.
                type: string
              realm:
                description: |-
                  Deprecated: use RealmRef instead.
                  Realm is name of KeycloakRealm custom resource.
                type: string
              realmRef:
                description: RealmRef is reference to Realm custom resource.
                properties:
                  kind:
                    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
                type: object
            required:
            - name
            - providerId
            - providerType
            type: object
          status:
            description: KeycloakComponentStatus defines the observed state of KeycloakRealmComponent.
            properties:
              failureCount:
                format: int64
                type: integer
              value:
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
