diff --git a/incubator/kube-downscaler/Chart.yaml b/incubator/kube-downscaler/Chart.yaml index 722a625807..d6570c6720 100644 --- a/incubator/kube-downscaler/Chart.yaml +++ b/incubator/kube-downscaler/Chart.yaml @@ -1,6 +1,6 @@ name: kube-downscaler apiVersion: v1 -version: 0.4.1 +version: 0.4.2 appVersion: 19.10.1 description: A Helm chart for kube-downscaler home: https://github.com/hjacobs/kube-downscaler diff --git a/incubator/kube-downscaler/README.md b/incubator/kube-downscaler/README.md index 7d96b2978d..3e61a291b8 100644 --- a/incubator/kube-downscaler/README.md +++ b/incubator/kube-downscaler/README.md @@ -61,7 +61,7 @@ The following tables lists the configurable parameters of the kube-downscaler ch | `securityContext` | SecurityContext to apply to the downscaler pod | `{}` | | `rbac.create` | If true, create & use RBAC resources | `true` | | `rbac.serviceAccountName` | ServiceAccount downscaler will use (ignored if rbac.create=true) | `default` | -| `downscaleResources` | Resources the downscaler is allowed to manage | `[deployments, statefulsets, namespaces]` | +| `downscaleResources` | Resources the downscaler is allowed to manage | `[deployments, statefulsets]` | | `excludedDeployments` | Deployments to exclude from the downscaler | `[]` | | `excludedNamespaces` | Namespaces to exclude from the downscaler | `[]` | | `extraArgs` | Add extra args to docker command | `[]` | diff --git a/incubator/kube-downscaler/templates/clusterrole.yaml b/incubator/kube-downscaler/templates/clusterrole.yaml index 89cacdcc80..4de4261b4b 100644 --- a/incubator/kube-downscaler/templates/clusterrole.yaml +++ b/incubator/kube-downscaler/templates/clusterrole.yaml @@ -13,6 +13,7 @@ rules: - "" resources: - pods + - namespaces verbs: - get - watch diff --git a/incubator/kube-downscaler/templates/deployment.yaml b/incubator/kube-downscaler/templates/deployment.yaml index 77dfec22b1..be7daa3fc9 100644 --- a/incubator/kube-downscaler/templates/deployment.yaml +++ b/incubator/kube-downscaler/templates/deployment.yaml @@ -40,12 +40,12 @@ spec: {{- if .Values.debug.enable }} - --debug {{- end }} - - --include-resources="{{- join "," .Values.downscaleResources }}" + - --include-resources={{- join "," .Values.downscaleResources }} {{- if .Values.excludedNamespaces }} - - --exclude-namespaces="{{- join "," .Values.excludedNamespaces }}" + - --exclude-namespaces={{- join "," .Values.excludedNamespaces }} {{- end }} {{- if .Values.excludedDeployments }} - - --exclude-deployments="{{- join "," .Values.excludedDeployments }}" + - --exclude-deployments={{- join "," .Values.excludedDeployments }} {{- end }} {{- with .Values.extraArgs }} {{ toYaml . | indent 10 }} diff --git a/incubator/kube-downscaler/values.yaml b/incubator/kube-downscaler/values.yaml index 52d5fdc70f..4076e1c013 100644 --- a/incubator/kube-downscaler/values.yaml +++ b/incubator/kube-downscaler/values.yaml @@ -16,7 +16,6 @@ namespace: downscaleResources: - deployments - statefulsets - - namespaces # List of namespaces to be excluded from the downscaler excludedNamespaces: []