Usage
Configuration overload
By default, the root directory of the Znuny application is /opt/otrs/.
All application configurations are located in the /opt/otrs/Kernel/ directory.
If you need to override a configuration file, a simple method is available.
Simply copy the resources with the appropriate tree structure into the /opt/otrs/Custom directory.
Based on this principle, the file /opt/otrs/Kernel/Langage/en.pm will be replaced by the file /opt/otrs/Custom/Kernel/Langage/en.pm.
To overcome the limitations of permissions on Kubernetes mounts, an automatic copy system has been implemented.
The config.configurationOverridesDirectory
parameter, which by default contains the value /overrides/, is used to specify an overload directory in which all overload files should be stored.
These files must be stored in the same tree structure as the /opt/otrs/Custom/ directory.
In conclusion, a file mounted on the /overrides/Kernel/Language/en.pm path will be copied on container startup to the /opt/otrs/Custom/Kernel/Language/en.pm path, which will then overload the /opt/otrs/Kernel/Language/en.pm file on Znuny startup.
To override a file, simply mount a secret or configmap on the desired path.
The extraConfigMaps
and extraConfigmapMounts
configurations are provided for this purpose.
Example
extraConfigMaps:
- name: config-en-pm
items:
- key: en.pm
data: |-
content
of
the
configmap
extraConfigmapMounts:
- name: overrides-config-en-pm
mountPath: /overrides/Kernel/Language/en.pm
configMap: config-en-pm
subpath: en.pm
Tips
A configmap or secret can be mounted from a resource external to the charts.