Skip to content

Commit 7afff7e

Browse files
committed
chore: incorporate suggestions
1 parent f33f490 commit 7afff7e

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

charts/cluster-autoscaler/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,6 @@ vpa:
421421
minAllowed:
422422
cpu: 20m
423423
memory: 50Mi
424-
recommenders:
425-
- name: default
426424
```
427425

428426
## Values
@@ -538,5 +536,5 @@ vpa:
538536
| vpa | object | `{"containerPolicy":{},"enabled":false,"updateMode":"Auto"}` | Configure a VerticalPodAutoscaler for the cluster-autoscaler Deployment. |
539537
| vpa.containerPolicy | object | `{}` | [ContainerResourcePolicy](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L159). The containerName is always et to the deployment's container name. This value is required if VPA is enabled. |
540538
| vpa.enabled | bool | `false` | If true, creates a VerticalPodAutoscaler. |
541-
| vpa.recommenders | list | `[]` | List of recommender selectors that will apply to this VerticalPodAutoscaler. An empty list uses the `default` recommender. |
539+
| vpa.recommender | string | `"default"` | Name of the recommender that will apply to this VerticalPodAutoscaler. |
542540
| vpa.updateMode | string | `"Auto"` | [UpdateMode](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L124) |

charts/cluster-autoscaler/templates/vpa.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ spec:
1313
name: {{ template "cluster-autoscaler.fullname" . }}
1414
updatePolicy:
1515
updateMode: {{ .Values.vpa.updateMode | quote }}
16-
{{- with .Values.vpa.recommenders }}
17-
recommenders: {{- . | toYaml | nindent 4 }}
18-
{{- end }}
16+
recommenders:
17+
- name: {{ .Values.vpa.recommender | quote }}
1918
resourcePolicy:
2019
containerPolicies:
2120
- containerName: {{ template "cluster-autoscaler.name" . }}

charts/cluster-autoscaler/values.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,8 @@ vpa:
489489
updateMode: "Auto"
490490
# vpa.containerPolicy -- [ContainerResourcePolicy](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L159). The containerName is always et to the deployment's container name. This value is required if VPA is enabled.
491491
containerPolicy: {}
492-
# vpa.recommenders -- VPA recommenders that will provide recommendations for vertical scaling
493-
# When the recommenders list is empty, the recommender 'default' is used
494-
recommenders: []
495-
# - name: my-recommender
492+
# vpa.recommender -- Name of the VPA recommender that will provide recommendations for vertical scaling.
493+
recommender: default
496494

497495
# secretKeyRefNameOverride -- Overrides the name of the Secret to use when loading the secretKeyRef for AWS, Azure and Civo env variables
498496
secretKeyRefNameOverride: ""

0 commit comments

Comments
 (0)