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 8324102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
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 8324102

Please sign in to comment.