Skip to content

Commit b27030b

Browse files
authored
Merge pull request #9289 from Art3mK/feat/chart-deployment-annotations
feat(vpa): add helm chart deployment-level annotations support for all components in vertical-pod-autoscaler chart
2 parents 1e8db3d + 5a1b93e commit b27030b

File tree

6 files changed

+28
-2
lines changed

6 files changed

+28
-2
lines changed

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.8.0
18+
version: 0.8.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WARNING: This chart is currently under development and is not ready for producti
44

55
Automatically adjust resources for your workloads
66

7-
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square)
7+
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square)
88
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
99
![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square)
1010

@@ -82,6 +82,7 @@ helm upgrade <release-name> <chart> \
8282
| admissionController.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | `"admission-controller"` | |
8383
| admissionController.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | `"kubernetes.io/hostname"` | |
8484
| admissionController.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `100` | |
85+
| admissionController.annotations | object | `{}` | |
8586
| admissionController.certGen.affinity | object | `{}` | |
8687
| admissionController.certGen.enabled | bool | `true` | |
8788
| admissionController.certGen.env | object | `{}` | Additional environment variables to be added to the certgen container. Format is KEY: Value format |
@@ -154,6 +155,7 @@ helm upgrade <release-name> <chart> \
154155
| recommender.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | `"recommender"` | |
155156
| recommender.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | `"kubernetes.io/hostname"` | |
156157
| recommender.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `100` | |
158+
| recommender.annotations | object | `{}` | |
157159
| recommender.enabled | bool | `true` | |
158160
| recommender.extraArgs | list | `[]` | |
159161
| recommender.extraEnv | list | `[]` | |
@@ -184,6 +186,7 @@ helm upgrade <release-name> <chart> \
184186
| updater.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | `"updater"` | |
185187
| updater.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | `"kubernetes.io/hostname"` | |
186188
| updater.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | `100` | |
189+
| updater.annotations | object | `{}` | |
187190
| updater.enabled | bool | `true` | |
188191
| updater.extraArgs | list | `[]` | |
189192
| updater.image.pullPolicy | string | `"IfNotPresent"` | |

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ metadata:
99
namespace: {{ .Release.Namespace }}
1010
labels:
1111
{{- include "vertical-pod-autoscaler.admissionController.labels" . | nindent 4 }}
12+
{{- with .Values.admissionController.annotations }}
13+
annotations:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
1216
spec:
1317
replicas: {{ .Values.admissionController.replicas }}
1418
{{- with .Values.admissionController.updateStrategy }}

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/recommender-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "vertical-pod-autoscaler.recommender.labels" . | nindent 4 }}
9+
{{- with .Values.recommender.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
spec:
1014
replicas: {{ .Values.recommender.replicas }}
1115
{{- with .Values.recommender.updateStrategy }}

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "vertical-pod-autoscaler.updater.labels" . | nindent 4 }}
9+
{{- with .Values.updater.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
spec:
1014
replicas: {{ .Values.updater.replicas }}
1115
selector:

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ containerSecurityContext: {}
2222

2323
admissionController:
2424
enabled: true
25+
26+
# Annotations to add to the Admission Controller deployment.
27+
annotations: {}
28+
2529
image:
2630
# Image repository for the Admission Controller default container.
2731
repository: registry.k8s.io/autoscaling/vpa-admission-controller
@@ -183,6 +187,10 @@ admissionController:
183187

184188
recommender:
185189
enabled: true
190+
191+
# Annotations to add to the Recommender deployment.
192+
annotations: {}
193+
186194
image:
187195
# Image repository for the Recommender default container.
188196
repository: registry.k8s.io/autoscaling/vpa-recommender
@@ -277,6 +285,9 @@ recommender:
277285
updater:
278286
enabled: true
279287

288+
# Annotations to add to the Updater deployment.
289+
annotations: {}
290+
280291
# Additional args for the updater
281292
extraArgs: []
282293

0 commit comments

Comments
 (0)