Skip to content

Commit

Permalink
Experimental: support configuring additional init containers for Horizon
Browse files Browse the repository at this point in the history
  • Loading branch information
deejgregor committed Nov 17, 2023
1 parent f8d8280 commit 8bcd878
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion horizon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions horizon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | |
Expand Down
3 changes: 3 additions & 0 deletions horizon/templates/opennms-core.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions horizon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8bcd878

Please sign in to comment.