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 21, 2020
1 parent 95af6a5 commit 533012b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ spec:
- --interval={{ .Values.interval }}
{{- if .Values.namespace }}
{{- if .Values.namespace.active_in }}
- --namespace={{ .Values.namespace.active_in }}
- --namespace={{ .Values.namespace.active_in | join "," }}
{{- end }}
{{- if .Values.namespace.inactive_in }}
- --exclude-namespaces={{ .Values.namespace.inactive_in | join "," }}
{{- end }}
{{- end }}
{{- if .Values.debug.enable }}
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 533012b

Please sign in to comment.