Merge "Add ability to set the domain name in the Nagios chart"

This commit is contained in:
Zuul 2020-03-17 17:52:47 +00:00 committed by Gerrit Code Review
commit f0e3ce9a08
2 changed files with 15 additions and 0 deletions

View File

@ -109,6 +109,10 @@ spec:
mountPath: /tmp mountPath: /tmp
- name: nagios-confd - name: nagios-confd
mountPath: /opt/nagios/etc/conf.d mountPath: /opt/nagios/etc/conf.d
env:
{{- if .Values.pod.env }}
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env | indent 12 }}
{{- end }}
containers: containers:
- name: apache-proxy - name: apache-proxy
{{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }} {{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }}
@ -161,6 +165,9 @@ spec:
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 30 periodSeconds: 30
env: env:
{{- if .Values.pod.env }}
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env | indent 12 }}
{{- end }}
- name: SNMP_NOTIF_PRIMARY_TARGET_WITH_PORT - name: SNMP_NOTIF_PRIMARY_TARGET_WITH_PORT
value: {{ $envAll.Values.conf.nagios.notification.snmp.primary_target }} value: {{ $envAll.Values.conf.nagios.notification.snmp.primary_target }}
- name: SNMP_NOTIF_SECONDARY_TARGET_WITH_PORT - name: SNMP_NOTIF_SECONDARY_TARGET_WITH_PORT

View File

@ -238,6 +238,14 @@ pod:
termination_grace_period: termination_grace_period:
nagios: nagios:
timeout: 30 timeout: 30
#env:
#
# NOTE(megheisler): This value can be used to hold
# the domain name. Functionality has been added in
# plugins to append the domain to the host name in
# the nagios dashboard
#
# NODE_DOMAIN:
replicas: replicas:
nagios: 1 nagios: 1
resources: resources: