Closed chloesoe closed 3 years ago
Maybe we can build something similar to what we already do for the EXTRA_OPTS
environment variable. for allowing to add additional entries to extraVolumes
, extraVolumeMounts
and extraInitContainers
.
https://github.com/projectsyn/component-keycloak/blob/532880ab59f6966d0ebe1253d9ee13eb5a83f6d5/class/defaults.yml#L83-L85 The additional parameters may have to be strings themselves for the interpolation to work, but it's worth a try to make them arrays and see if reclass interpolates them correctly in a string context.
For extending Keycloak with custom JARs this is also useful (regarding init containers)
Context
In order to provide a custom theme according to the codecentric documentation we have to add extraInitContainers, extraVolumeMounts, and extraVolumes. In the component-keycloak that should be supported easily. At the moment we to copy the whole extraVolumes String (see component-keycloak/defaults.yml) to our cluster definition file to add an additional volume.
For https://github.com/vshn/keycloak-theme/ we have to add the values below, but we also have to copy everything from defaults.yml, which leads to duplication.
Acceptance criteria
Alternatives
Copy paste all extraVolume definitions from component-keycloak works but.