Skip to content

Commit

Permalink
feat(vertical-pod-autoscaler): allow deployment annotations (cowboysy…
Browse files Browse the repository at this point in the history
  • Loading branch information
agrevtsev authored Nov 23, 2023
1 parent 268bb28 commit 057a0c5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/vertical-pod-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
version: 9.5.0
dependencies:
- name: common
version: 2.9.0
version: 2.13.3
repository: https://charts.bitnami.com/bitnami/
annotations:
artifacthub.io/signKey: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
{{- if .Values.commonLabels }}
{{- 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 }}
{{- if or .Values.admissionController.deploymentAnnotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" (dict "values" ( list .Values.admissionController.deploymentAnnotations .Values.commonAnnotations ) "context" .) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.admissionController.replicaCount }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
{{- if .Values.commonLabels }}
{{- 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 }}
{{- if or .Values.recommender.deploymentAnnotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" (dict "values" ( list .Values.recommender.deploymentAnnotations .Values.commonAnnotations ) "context" .) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.recommender.replicaCount }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
{{- if .Values.commonLabels }}
{{- 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 }}
{{- if or .Values.updater.deploymentAnnotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" (dict "values" ( list .Values.updater.deploymentAnnotations .Values.commonAnnotations ) "context" .) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.updater.replicaCount }}
Expand Down
9 changes: 9 additions & 0 deletions charts/vertical-pod-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ admissionController:
## @param admissionController.serviceAccount.name The name of the service account to use (Generated using the `vertical-pod-autoscaler.fullname` template if not set)
name:

## @param admissionController.deploymentAnnotations Additional deployment annotations
deploymentAnnotations: {}

## @param admissionController.podAnnotations Additional pod annotations
podAnnotations: {}

Expand Down Expand Up @@ -330,6 +333,9 @@ recommender:
## @param recommender.serviceAccount.name The name of the service account to use (Generated using the `vertical-pod-autoscaler.fullname` template if not set)
name:

## @param recommender.deploymentAnnotations Additional deployment annotations
deploymentAnnotations: {}

## @param recommender.podAnnotations Additional pod annotations
podAnnotations: {}

Expand Down Expand Up @@ -589,6 +595,9 @@ updater:
## @param updater.serviceAccount.name The name of the service account to use (Generated using the `vertical-pod-autoscaler.fullname` template if not set)
name:

## @param updater.deploymentAnnotations Additional deployment annotations
deploymentAnnotations: {}

## @param updater.podAnnotations Additional pod annotations
podAnnotations: {}

Expand Down

0 comments on commit 057a0c5

Please sign in to comment.