Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/telegraf-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
version: 1.5.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.
Expand Down
5 changes: 5 additions & 0 deletions charts/telegraf-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ webhooks:
- DELETE
resources:
- pods
{{- if not (empty .Values.namespaceSelector) }}
scope: "Namespaced"
{{- end }}
namespaceSelector:
{{- toYaml .Values.namespaceSelector | nindent 4 }}
---
apiVersion: v1
kind: Secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ webhooks:
- DELETE
resources:
- pods
{{- if not (empty .Values.namespaceSelector) }}
scope: "Namespaced"
{{- end }}
namespaceSelector:
{{- toYaml .Values.namespaceSelector | nindent 4 }}
{{- end }}
1 change: 1 addition & 0 deletions charts/telegraf-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ 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
namespaceSelector: {}