From 230a27e5b2c39862bf0d880052443b609d0ca29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=A9vesque?= Date: Wed, 12 May 2021 15:47:02 -0400 Subject: [PATCH] enhancement(ci): support in helm vector-agent to specify command (#7107) * support in helm vector-agent to specify command Signed-off-by: Martin Levesque * Update helm-snapshots Signed-off-by: Spencer Gilbert * Update kubernetes resources Signed-off-by: Spencer Gilbert Co-authored-by: Spencer Gilbert --- distribution/helm/vector-agent/templates/daemonset.yaml | 2 ++ distribution/helm/vector-agent/values.yaml | 3 +++ distribution/kubernetes/vector-agent/resources.yaml | 2 ++ distribution/kubernetes/vector-all/resources.yaml | 2 ++ .../helm-snapshots/builtin_configs/vector-agent/snapshot.yaml | 2 ++ .../helm-snapshots/topology_config/vector-agent/snapshot.yaml | 2 ++ 6 files changed, 13 insertions(+) diff --git a/distribution/helm/vector-agent/templates/daemonset.yaml b/distribution/helm/vector-agent/templates/daemonset.yaml index cf175eef744bd..5ae433695a6cc 100644 --- a/distribution/helm/vector-agent/templates/daemonset.yaml +++ b/distribution/helm/vector-agent/templates/daemonset.yaml @@ -42,6 +42,8 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: {{ include "libvector.image" . | quote }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" + command: + {{- toYaml .Values.command | nindent 12 }} args: - --config - /etc/vector/*.toml diff --git a/distribution/helm/vector-agent/values.yaml b/distribution/helm/vector-agent/values.yaml index 4d1e03c341b9c..24a83e98faa1d 100644 --- a/distribution/helm/vector-agent/values.yaml +++ b/distribution/helm/vector-agent/values.yaml @@ -14,6 +14,9 @@ image: # Image pull secrets to use at the `Pod`s managed by `DaemonSet`. imagePullSecrets: [] +# Command to use at the pods managed by DaemonSet +command: [] + # Override the chart name used in templates. nameOverride: "" # Override the full chart name (name prefixed with release name) used in diff --git a/distribution/kubernetes/vector-agent/resources.yaml b/distribution/kubernetes/vector-agent/resources.yaml index 6105c72e75811..a43a64eebd52c 100644 --- a/distribution/kubernetes/vector-agent/resources.yaml +++ b/distribution/kubernetes/vector-agent/resources.yaml @@ -146,6 +146,8 @@ spec: {} image: "timberio/vector:latest-debian" imagePullPolicy: "IfNotPresent" + command: + [] args: - --config - /etc/vector/*.toml diff --git a/distribution/kubernetes/vector-all/resources.yaml b/distribution/kubernetes/vector-all/resources.yaml index 92f856d709c65..03ce0d373d132 100644 --- a/distribution/kubernetes/vector-all/resources.yaml +++ b/distribution/kubernetes/vector-all/resources.yaml @@ -255,6 +255,8 @@ spec: {} image: "timberio/vector:latest-debian" imagePullPolicy: "IfNotPresent" + command: + [] args: - --config - /etc/vector/*.toml diff --git a/tests/helm-snapshots/builtin_configs/vector-agent/snapshot.yaml b/tests/helm-snapshots/builtin_configs/vector-agent/snapshot.yaml index d5f79e05a7909..aaf6c0ced7d67 100644 --- a/tests/helm-snapshots/builtin_configs/vector-agent/snapshot.yaml +++ b/tests/helm-snapshots/builtin_configs/vector-agent/snapshot.yaml @@ -166,6 +166,8 @@ spec: {} image: "timberio/vector:0.0.0-debian" imagePullPolicy: "IfNotPresent" + command: + [] args: - --config - /etc/vector/*.toml diff --git a/tests/helm-snapshots/topology_config/vector-agent/snapshot.yaml b/tests/helm-snapshots/topology_config/vector-agent/snapshot.yaml index 5369b7b92c0b5..ebdcebcd41b31 100644 --- a/tests/helm-snapshots/topology_config/vector-agent/snapshot.yaml +++ b/tests/helm-snapshots/topology_config/vector-agent/snapshot.yaml @@ -205,6 +205,8 @@ spec: {} image: "timberio/vector:0.0.0-debian" imagePullPolicy: "IfNotPresent" + command: + [] args: - --config - /etc/vector/*.toml