anchor.diff:  <@tmpl.guide
   title="Keycloak Realm Import"
   priority=30
  -summary="How to perform an automated Keyacloak Realm Import">
  +summary="How to perform an automated Keycloak Realm Import using the operator">
   
   == Keycloak Realm Import
   
  -The Keycloak Operator ships with the feature of automatically perform a realm import for the Keycloak Deployment.
  +The Keycloak Operator ships with the ability to automatically perform a realm import for the Keycloak Deployment.
   
   .Note:
   [NOTE]
  
positive.code: kubectl apply -f example-realm-import.yaml
  ----
  
  And you can check the progress of the Import by running:
  
  [source,bash]
  ----
  kubectl get keycloakrealmimports/my-realm-kc -o go-template='{{range .status.conditions}}CONDITION: {{.type}}{{"\n"}}  STATUS: {{.status}}{{"\n"}}  MESSAGE: {{.message}}{{"\n"}}{{end}}'
  ----
  
  When the import successfully completed the output will look like follow:
  
  [source,bash]
  ----
  
negative.code:     ...
  ----
  
  This CR should be created in the same namespace as the Keycloak Deployment CR, defined in the field `keycloakCRName`.
  The `realm` field accepts a full https://www.keycloak.org/docs-api/{majorMinorVersion}/rest-api/index.html#_realmrepresentation[RealmRepresentation].
  
  The recommended way to obtain a `RealmRepresentation` is leveraging the export functionality <@links.server id="importExport"/>
  
  * export the Realm to a single file
  * convert the json to yaml
  