Skip to content

Commit 355dfe9

Browse files
author
thomas.nadalie
committed
feat: handle custom controller annotations
Signed-off-by: thomas.nadalie <thomas.nadalie@ext.cdiscount.com>
1 parent dac12d6 commit 355dfe9

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

charts/prom-aggregation-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: prom-aggregation-gateway
3-
version: 0.5.1
3+
version: 0.5.2
44
home: https://github.com/zapier/prom-aggregation-gateway
55
maintainers:
66
- name: djeebus

charts/prom-aggregation-gateway/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
1818
app.kubernetes.io/managed-by: {{ .Release.Service }}
1919
{{- end }}
2020

21+
{{- define "prom-aggregation-gateway.annotations" -}}
22+
{{ toYaml .Values.controller.annotations }}
23+
{{- end }}
24+
2125
{{- define "prom-aggregation-gateway.selectorLabels" -}}
2226
app.kubernetes.io/name: {{ include "prom-aggregation-gateway.name" . }}
2327
app.kubernetes.io/instance: {{ .Release.Name }}

charts/prom-aggregation-gateway/templates/controller.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ metadata:
77
{{- if .Values.controller.labels }}
88
{{- toYaml .Values.controller.labels | nindent 4 }}
99
{{- end }}
10-
10+
{{- if .Values.controller.annotations }}
11+
annotations:
12+
{{- include "prom-aggregation-gateway.annotations" . | nindent 4 }}
13+
{{- end }}
1114
spec:
1215
selector:
1316
matchLabels:

charts/prom-aggregation-gateway/values.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
},
4343
"apiPort": {
4444
"type": "integer"
45+
},
46+
"annotations": {
47+
"type": "object",
48+
"patternProperties": {
49+
".*": {"type": "string"}
50+
}
4551
}
4652
},
4753
"required": [

0 commit comments

Comments
 (0)