How to set DEBUG environment variables using Keycloak K8S Operator?

I’m trying to work through a database connection error, and I’d like to enable debug logging to get more information about the problem.

According to this StackOverflow post it’s possible to enable extra logging by setting environment variables like KEYCLOAK_LOGLEVEL=DEBUG

However, looking at the Keycloak custom resource definition I can’t see any way to specify environment variables to propagate to the Keycloak pods.

Is there something I’m missing? Or another way to achieve the same result of enabling debug logging?

You can add that information in the Keycloak CR , below spec :
keycloakDeploymentSpec:
experimental:
env:
- name: KEYCLOAK_LOGLEVEL
value: DEBUG