Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Commit f8c2e18

Browse files
guikcdhjacobs
authored andcommitted
helm-chart: Support excluding namespaces (#83)
This is interesting to scan all namespaces unless a list of specific ones. Referenced in #66.
1 parent 95af6a5 commit f8c2e18

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

helm-chart/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
{{- if .Values.namespace.active_in }}
3232
- --namespace={{ .Values.namespace.active_in }}
3333
{{- end }}
34+
{{- if .Values.namespace.inactive_in }}
35+
- --exclude-namespaces={{ .Values.namespace.inactive_in | join "," }}
36+
{{- end }}
3437
{{- end }}
3538
{{- if .Values.debug.enable }}
3639
- --debug

helm-chart/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ debug:
1212
# namespace:
1313
## Deployment will query all namespaces if left empty:
1414
# active_in:
15+
## Deployment exclude these namespaces:
16+
# inactive_in:
1517
## How frequently kube-downscaler should query applications uptime, unit is in seconds.
1618

1719
## Default is 1 minute.

0 commit comments

Comments
 (0)