diff --git a/horizon/README.md b/horizon/README.md index 2070c54..f4f6b88 100644 --- a/horizon/README.md +++ b/horizon/README.md @@ -128,6 +128,7 @@ kubectl create configmap -n $instance $configmap --from-file=lots-of-zeros.zip | core.image.pullPolicy | string | `"IfNotPresent"` | | | core.image.repository | string | `"opennms/horizon"` | | | core.image.tag | string | `""` | | +| core.initContainers | list | `[]` | Experimental: a list of additional init containers | | core.inspector.enabled | bool | `false` | | | core.overlayConfigMaps | list | `[]` | | | core.postConfigJob.ttlSecondsAfterFinished | int | `300` | | diff --git a/horizon/templates/opennms-core.statefulset.yaml b/horizon/templates/opennms-core.statefulset.yaml index 0fa9d13..ff259ff 100644 --- a/horizon/templates/opennms-core.statefulset.yaml +++ b/horizon/templates/opennms-core.statefulset.yaml @@ -135,6 +135,9 @@ spec: mountPath: /opennms-overlay-configmaps/{{ $k }}/{{ $r.path }} {{- end }} {{- end }} + {{- with .Values.core.initContainers }} + {{- toYaml . | nindent 6 }} + {{- end }} nodeSelector: {{- toYaml .Values.core.configuration.nodeSelector | nindent 8 }} affinity: diff --git a/horizon/values.yaml b/horizon/values.yaml index e80e897..e854be7 100644 --- a/horizon/values.yaml +++ b/horizon/values.yaml @@ -171,6 +171,8 @@ core: externalPort: 8101 postConfigJob: ttlSecondsAfterFinished: 300 + # -- Experimental: a list of additional init containers + initContainers: [] # OpenNMS Sentinel for flow processing (Optional) sentinel: