apiVersion: v1.edp.epam.com/v1
kind: KeycloakRealmComponent
metadata:
  name: component-sample
spec:
  realmRef:
    name: keycloakrealm-sample
    kind: KeycloakRealm
  name: component-sample
  providerId: scope
  providerType: "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy"

---

apiVersion: v1.edp.epam.com/v1
kind: KeycloakRealmComponent
metadata:
  name: component-sample-child
spec:
  realmRef:
    name: keycloakrealm-sample
    kind: KeycloakRealm
  name: component-sample-child
  providerId: scope
  providerType: "org.keycloak.services.clientregistration.policy.ClientRegistrationPolicy"
  parentRef:
    name: component-sample
    kind: KeycloakRealmComponent
