From c4715cdc0b2d06e2549cc71c168cc147ac290e29 Mon Sep 17 00:00:00 2001 From: g0dsCookie Date: Mon, 26 Sep 2022 12:21:08 +0200 Subject: [PATCH] added nodeZone option --- charts/icinga2/Chart.yaml | 2 +- charts/icinga2/templates/icinga2-config.yaml | 2 +- charts/icinga2/values.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/icinga2/Chart.yaml b/charts/icinga2/Chart.yaml index be1414e..107cfdc 100644 --- a/charts/icinga2/Chart.yaml +++ b/charts/icinga2/Chart.yaml @@ -3,5 +3,5 @@ name: icinga2 icon: https://icinga.com/docs/icinga-2/latest/assets/images/favicon.png description: Icinga is a monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting. type: application -version: 0.1.3 +version: 0.1.4 appVersion: "2.13.5" diff --git a/charts/icinga2/templates/icinga2-config.yaml b/charts/icinga2/templates/icinga2-config.yaml index 1d2ce5e..a871d41 100644 --- a/charts/icinga2/templates/icinga2-config.yaml +++ b/charts/icinga2/templates/icinga2-config.yaml @@ -32,7 +32,7 @@ data: node: name: {{ .Values.nodeName }} {{- if .Values.parent }} - zone: true + zone: {% if .Vales.nodeZone %}true{% else %}false{% endif %} parent: {{ .Values.parent }} {{- else }} zone: false diff --git a/charts/icinga2/values.yaml b/charts/icinga2/values.yaml index 924f9b7..d25c71d 100644 --- a/charts/icinga2/values.yaml +++ b/charts/icinga2/values.yaml @@ -2,6 +2,7 @@ nameOverride: "" fullnameOverride: "" nodeName: +nodeZone: true parent: master: true endpoints: []