Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vertical-pod-autoscaler): update registry.k8s.io/autoscaling/vpa to v1.2.1 #705

Merged
merged 2 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/vertical-pod-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.1.2
appVersion: 1.2.1
description: Set of components that automatically adjust the amount of CPU and memory requested by pods running in the Kubernetes Cluster
home: https://github.com/kubernetes/autoscaler
icon: https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.svg
Expand All @@ -10,10 +10,10 @@ name: vertical-pod-autoscaler
sources:
- https://github.com/kubernetes/autoscaler
- https://github.com/cowboysysop/charts/tree/master/charts/vertical-pod-autoscaler
version: 9.8.3
version: 9.9.0
dependencies:
- name: common
version: 2.19.1
version: 2.21.0
repository: https://charts.bitnami.com/bitnami/
annotations:
artifacthub.io/signKey: |
Expand Down
21 changes: 18 additions & 3 deletions charts/vertical-pod-autoscaler/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.admissionController.enabled }}
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRole

Check failure on line 3 in charts/vertical-pod-autoscaler/templates/admission-controller/clusterrole.yaml

View workflow job for this annotation

GitHub Actions / checkov

CKV_K8S_155: "Minimize ClusterRoles that grant control over validating or mutating admission webhook configurations"
metadata:
name: {{ include "vertical-pod-autoscaler.admissionController.fullname" . }}
labels:
Expand All @@ -9,8 +9,7 @@
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
rules:
# system:vpa-target-reader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
{{- end }}
spec:
{{- include "common.images.pullSecrets" ( dict "images" ( list .Values.admissionController.image ) "global" .Values.global ) | nindent 6 }}
{{- if .Values.admissionController.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.admissionController.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.admissionController.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
Expand Down Expand Up @@ -133,6 +136,9 @@ spec:
- name: tls-secret
mountPath: /tls-secret
readOnly: true
{{- if .Values.admissionController.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.admissionController.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- with .Values.admissionController.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -149,4 +155,7 @@ spec:
- name: tls-secret
secret:
secretName: {{ include "vertical-pod-autoscaler.admissionController.tls.secretName" . }}
{{- if .Values.admissionController.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.admissionController.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.admissionController.pdb.minAvailable }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.admissionController.enabled }}
{{- if .Values.admissionController.metrics.serviceMonitor.enabled -}}
{{- if .Values.admissionController.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
rules:
# system:metrics-reader
Expand Down Expand Up @@ -130,3 +129,20 @@ rules:
- get
- list
- watch
# system:leader-locking-vpa-recommender
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- create
- apiGroups:
- "coordination.k8s.io"
resourceNames:
- vpa-recommender
resources:
- leases
verbs:
- get
- watch
- update
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
{{- end }}
spec:
{{- include "common.images.pullSecrets" ( dict "images" ( list .Values.recommender.image ) "global" .Values.global ) | nindent 6 }}
{{- if .Values.recommender.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.recommender.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.recommender.priorityClassName }}
priorityClassName: {{ .Values.recommender.priorityClassName | quote }}
{{- end }}
Expand Down Expand Up @@ -114,6 +117,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.recommender.resources | nindent 12 }}
volumeMounts:
{{- if .Values.recommender.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.recommender.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- with .Values.recommender.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -126,3 +133,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.recommender.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.recommender.extraVolumes "context" $) | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.recommender.pdb.minAvailable }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.recommender.metrics.serviceMonitor.enabled -}}
{{- if .Values.recommender.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
20 changes: 18 additions & 2 deletions charts/vertical-pod-autoscaler/templates/updater/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
rules:
# system:vpa-actor
Expand Down Expand Up @@ -108,4 +107,21 @@ rules:
- get
- list
- watch
# system:leader-locking-vpa-updater
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- create
- apiGroups:
- "coordination.k8s.io"
resourceNames:
- vpa-updater
resources:
- leases
verbs:
- get
- watch
- update
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
11 changes: 11 additions & 0 deletions charts/vertical-pod-autoscaler/templates/updater/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
{{- end }}
spec:
{{- include "common.images.pullSecrets" ( dict "images" ( list .Values.updater.image ) "global" .Values.global ) | nindent 6 }}
{{- if .Values.updater.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.updater.hostAliases "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.updater.priorityClassName }}
priorityClassName: {{ .Values.updater.priorityClassName | quote }}
{{- end }}
Expand Down Expand Up @@ -117,6 +120,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.updater.resources | nindent 12 }}
volumeMounts:
{{- if .Values.updater.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.updater.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- with .Values.updater.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -129,4 +136,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.updater.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.updater.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 1 addition & 2 deletions charts/vertical-pod-autoscaler/templates/updater/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations:
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.updater.pdb.minAvailable }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.updater.enabled }}
{{- if .Values.updater.metrics.serviceMonitor.enabled -}}
{{- if .Values.updater.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
Loading
Loading