From 8bcd8784107d79a88dad7f9d47c01cdae9537098 Mon Sep 17 00:00:00 2001 From: DJ Gregor Date: Fri, 17 Nov 2023 17:14:53 -0500 Subject: [PATCH] Experimental: support configuring additional init containers for Horizon --- horizon/Chart.yaml | 2 +- horizon/README.md | 1 + horizon/templates/opennms-core.statefulset.yaml | 3 +++ horizon/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/horizon/Chart.yaml b/horizon/Chart.yaml index 11faa00..b0a0fa1 100644 --- a/horizon/Chart.yaml +++ b/horizon/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.1.4 +version: 1.1.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to 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: