Skip to content

Commit 1a35849

Browse files
committed
[alertmanager] Variable to add extra k8s Objects
1 parent 4ad2516 commit 1a35849

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

charts/alertmanager/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/a
66
sources:
77
- https://github.com/prometheus/alertmanager
88
type: application
9-
version: 1.17.2
9+
version: 1.18.2
1010
# renovate: github-releases=prometheus/alertmanager
1111
appVersion: v0.28.1
1212
kubeVersion: ">=1.19.0-0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{ range .Values.extraObjects }}
2+
---
3+
{{ tpl (ternary . (toYaml .) (typeIs "string" .)) $ }}
4+
{{ end }}

charts/alertmanager/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,10 @@
946946
"extraPodConfigs": {
947947
"description": "Object to allow users to add additional Pod configuration like dnsPolicy or hostNetwork",
948948
"type": "object"
949+
},
950+
"extraObjects": {
951+
"description": "Object to allow users to add additional k8s objects like an extra service or targetgroupbinding",
952+
"type": "object"
949953
}
950954
}
951955
}

charts/alertmanager/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,17 @@ configmapReload:
346346
extraEnv: []
347347
# - name: FOO
348348
# value: BAR
349+
350+
# -- Add extra specs dynamically to this chart
351+
extraObjects: []
352+
# - |
353+
# apiVersion: v1
354+
# kind: ConfigMap
355+
# metadata:
356+
# name: my-config
357+
# namespace: default
358+
# data:
359+
# key: value
349360

350361
securityContext: {}
351362
# capabilities:

0 commit comments

Comments
 (0)