Skip to content

Commit

Permalink
feat(vector): Add support for setting the pod hostNetwork (#213) (#238)
Browse files Browse the repository at this point in the history
* feat(vector): Add support for setting the pod hostNetwork (#213)

* +version bump

* +changelog

Co-authored-by: Spencer Gilbert <[email protected]>
  • Loading branch information
rgl and spencergilbert authored Aug 30, 2022
1 parent 0750512 commit e62e12d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions charts/vector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ helm install --name <RELEASE_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 |
Expand Down
3 changes: 3 additions & 0 deletions charts/vector/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/vector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down

0 comments on commit e62e12d

Please sign in to comment.