aerogear-attic / keycloak-operator

operates keycloaks
4 stars 2 forks source link

Provision keycloak once a keycloak custom resource is created #6

Closed JameelB closed 6 years ago

JameelB commented 6 years ago

Description

Implement the provision of a Keycloak instance based on the definition of the Keycloak custom resource. A Keycloak instance and an admin user for that instance should be created. A reference to the admin credential is added to the Keycloak custom resource as well as the service instance id.

Progress

Additional Notes

Related JIRA Ticket - https://issues.jboss.org/browse/AEROGEAR-7683

Verification Steps

  1. Create a Keycloak custom resource in the same namespace that the operator is deployed in.
  2. Keycloak should start provisioning in that namespace.
  3. A secret keycloak-admin-cred-<hash> should be created within the same namespace. This should have the following properties:
    ADMIN_USERNAME: admin
    ADMIN_PASSWORD: <generated-password>
  4. The Keycloak custom resource should have status.phase: provisioning and the following properties added to its Spec:
    Spec:
    adminCredentials: <keycloak-admin-cred-ref>
    instanceID: <keycloak-service-instance-id>
    ...
  5. Once provision is complete, the Keycloak custom resource should have status.phase: complete
  6. Verify that you can login to the Keycloak administration console with the credentials provided in the keycloak-admin-cred-<hash> secret.
JameelB commented 6 years ago

ping @dimitraz

JameelB commented 6 years ago

Closing as these changes are included in https://github.com/aerogear/keycloak-operator/pull/9