title: How to create custom themes on Keycloak Operator deployment on Kubernetes?
body: <h2>Complete flow is somewhat like this:</h2>
  <h3>Step-1: Applying all the relevant YAMLs</h3>
  <pre><code>$ sudo kind create cluster --name aftab-cluster --config cluster-config.yaml
  $ curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh | bash -s v0.17.0
  $ kubectl apply -f keycloak_backup.yaml
  $ kubectl apply -f keycloaks_client.yaml
  $ kubectl apply -f keycloaks_realm.yaml         //Theme configs not there. So, added loginTheme.
  
  loginTheme:
    description: Login Theme
    type: string
  loginWithEmailAllowed:
    description: Login with email
    type: boolean
  
  $ kubectl apply -f keycloak_users.yaml
  $ kubectl apply -f keycloaks_crd.yaml
  $ kubectl apply -f namespace.yaml
  $ kubectl apply -f role.yaml -n keycloak-namespace
  $ kubectl apply -f role_binding.yaml -n keycloak-namespace
  $ kubectl apply -f sa.yaml -n keycloak-namespace
  $ kubectl apply -f operator.yaml -n keycloak-namespace
  $ kubectl apply -f keycloak.yaml -n keycloak-namespace  
  
  apiVersion: keycloak.org/v1alpha1
  kind: Keycloak
  metadata:
    name: example-keycloak
    labels:
     app: sso
  spec:
    instances: 1
    extensions:
     - /PATH/FOR/MY/COLOR-THEME/JAR/
    externalAccess:
      enabled: True       
  </code></pre>
  <h3>Step-2: Verifing if pods are running. RUNNING HAPPILY.</h3>
  <pre><code>$ kubectl get po -n keycloak-namespace      // I can see podsa are running successfuly.
  NAME                                   READY   STATUS    RESTARTS   AGE
  keycloak-0                             1/1     Running   0          3m13s
  keycloak-operator-798747fb9d-2lgzn     1/1     Running   0          4m21s
  keycloak-postgresql-85579c4d6d-4tgxj   1/1     Running   0          3m13s
  </code></pre>
  <h3>Step-3: Creating a new Realm and client</h3>
  <pre><code>$ kubectl apply -f my-realm.yaml -n keycloak-namespace
  
  apiVersion: keycloak.org/v1alpha1
  kind: KeycloakRealm
  metadata:
    name: myrealm-realm
    labels:
      app: myrealm-realm
  spec:
    realm:
      id: &quot;myrealm&quot;
      realm: &quot;myrealm&quot;
      enabled: True
      displayName: &quot;myrealm&quot;
      userRegistration: True
      registrationAllowed: True
      editUsernameAllowed: True
      resetPasswordAllowed: True
      rememberMe: True
      registrationEmailAsUsername: True
      loginTheme: &quot;COLOR-THEME&quot;                &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; MY CUSTOM THEME
      users:
        - username: &quot;admin&quot;
          firstName: &quot;Admin&quot;
          realmRoles:
            - &quot;offline_access&quot;
            - &quot;uma_authorization&quot;
  
  $ kubectl apply -f my-client.yaml -n keycloak-namespace
  </code></pre>
  <h3>Step-4: Finally, accessed keycloak instance at http://localhost:3010, Working as expected.</h3>
  <p>Reams, clients, users, etc are looking good. But, my COLOR-THEME not found at the realm setting tab. Only default themes are there (keycloak and base).</p>
  <h3>directory structure looks like this:</h3>
  <pre><code>$ ls
  cluster-config.yaml  keycloak_backup.yaml   keycloaks_crd.yaml    namespace.yaml  role_binding.yaml  my-client.yaml
  xyz                  keycloak_users.yaml    keycloaks_realm.yaml  operator.yaml   sa.yaml            my_realm.yaml
  keycloak.yaml        keycloaks_client.yaml  keyclok-ing.yaml      role.yaml       themes             myrealm-realm.yaml
  </code></pre>