Skip to content

Commit

Permalink
helm-chart: Support excluding namespaces
Browse files Browse the repository at this point in the history
This is interesting to scan all namespaces unless a list of specific ones.
Referenced in hjacobs#66.
  • Loading branch information
guikcd committed Jan 22, 2020
1 parent 95af6a5 commit 926141b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
{{- if .Values.namespace.active_in }}
- --namespace={{ .Values.namespace.active_in }}
{{- end }}
{{- if .Values.namespace.inactive_in }}
- --exclude-namespaces={{ .Values.namespace.inactive_in | join "," }}
{{- end }}
{{- end }}
{{- if .Values.debug.enable }}
- --debug
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ debug:
# namespace:
## Deployment will query all namespaces if left empty:
# active_in:
## Deployment exclude these namespaces:
# inactive_in:
## How frequently kube-downscaler should query applications uptime, unit is in seconds.

## Default is 1 minute.
Expand Down

0 comments on commit 926141b

Please sign in to comment.