From 56ef1efc8812944e1eec40e9c7c05df52aa31762 Mon Sep 17 00:00:00 2001 From: Paulo Dias <44772900+paulojmdias@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:06:27 +0000 Subject: [PATCH] feat: [telegraf-operator] add support for disabling the flag --enable-default-internal-plugin (#630) --- charts/telegraf-operator/Chart.yaml | 2 +- charts/telegraf-operator/templates/deployment.yaml | 2 ++ charts/telegraf-operator/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/telegraf-operator/Chart.yaml b/charts/telegraf-operator/Chart.yaml index d504e220..15b0deb5 100644 --- a/charts/telegraf-operator/Chart.yaml +++ b/charts/telegraf-operator/Chart.yaml @@ -30,7 +30,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. -version: 1.3.12 +version: 1.4.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/telegraf-operator/templates/deployment.yaml b/charts/telegraf-operator/templates/deployment.yaml index a02f6c37..a8dba335 100644 --- a/charts/telegraf-operator/templates/deployment.yaml +++ b/charts/telegraf-operator/templates/deployment.yaml @@ -28,7 +28,9 @@ spec: args: - "--telegraf-default-class={{ .Values.classes.default }}" - --telegraf-classes-directory=/etc/telegraf-operator + {{- if eq .Values.enableDefaultInternalPlugin true }} - --enable-default-internal-plugin + {{- end }} - "--telegraf-image={{ .Values.image.sidecarImage }}" {{- if eq .Values.requireAnnotationsForSecret true }} - "--require-annotations-for-secret" diff --git a/charts/telegraf-operator/values.yaml b/charts/telegraf-operator/values.yaml index b3af521d..93303719 100644 --- a/charts/telegraf-operator/values.yaml +++ b/charts/telegraf-operator/values.yaml @@ -53,6 +53,7 @@ nodeSelector: {} tolerations: [] affinity: {} requireAnnotationsForSecret: false +enableDefaultInternalPlugin: true # allow hot reload ; disabled by default to support versions of telegraf # that do not support hot-reload and --watch-config flag hotReload: false