From e62e12d9f96f7594f57c1578d7d18ce127173f47 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 30 Aug 2022 21:56:17 +0100 Subject: [PATCH] feat(vector): Add support for setting the pod hostNetwork (#213) (#238) * feat(vector): Add support for setting the pod hostNetwork (#213) * +version bump * +changelog Co-authored-by: Spencer Gilbert --- CHANGELOG.md | 8 ++++++++ charts/vector/README.md | 1 + charts/vector/templates/_pod.tpl | 3 +++ charts/vector/values.yaml | 3 +++ 4 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9a6597..eb6c3a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +## [vector-0.16.0] - 2022-08-15 + +### Vector + +#### Features + +- Add support for setting the pod hostNetwork (#213) ([8b2e73a](https://github.com/vectordotdev/helm-charts/commit/8b2e73a3ef6bd175b9602f915dbf3684d244e126)) + ## [vector-0.15.1] - 2022-08-11 ### Vector diff --git a/charts/vector/README.md b/charts/vector/README.md index 5b70108..4d34aab 100644 --- a/charts/vector/README.md +++ b/charts/vector/README.md @@ -171,6 +171,7 @@ helm install --name \ | podDisruptionBudget.enabled | bool | `false` | Enable a PodDisruptionBudget for Vector | | podDisruptionBudget.maxUnavailable | int | `nil` | The number of Pods that can be unavailable after an eviction | | podDisruptionBudget.minAvailable | int | `1` | The number of Pods that must still be available after an eviction | +| podHostNetwork | bool | `false` | Set the hostNetwork on Vector Pods | | podLabels | object | `{"vector.dev/exclude":"true"}` | Set labels on Vector Pods | | podManagementPolicy | string | `"OrderedReady"` | Specify the podManagementPolicy for the Aggregator role # Valid for Aggregator role | | podMonitor.additionalLabels | object | `{}` | Adds additional labels to the PodMonitor | diff --git a/charts/vector/templates/_pod.tpl b/charts/vector/templates/_pod.tpl index c631261..5161c93 100644 --- a/charts/vector/templates/_pod.tpl +++ b/charts/vector/templates/_pod.tpl @@ -3,6 +3,9 @@ Defines the PodSpec for Vector. */}} {{- define "vector.pod" -}} serviceAccountName: {{ include "vector.serviceAccountName" . }} +{{- with .Values.podHostNetwork }} +hostNetwork: {{ . }} +{{- end }} {{- with .Values.podSecurityContext }} securityContext: {{ toYaml . | indent 2 }} diff --git a/charts/vector/values.yaml b/charts/vector/values.yaml index ac63b18..2df39eb 100644 --- a/charts/vector/values.yaml +++ b/charts/vector/values.yaml @@ -121,6 +121,9 @@ podLabels: # podPriorityClassName -- Set the priorityClassName on Vector Pods podPriorityClassName: "" +# podHostNetwork -- Set the hostNetwork on Vector Pods +podHostNetwork: false + # podSecurityContext -- Allows you to overwrite the default PodSecurityContext for Vector podSecurityContext: {}