Skip to content

Commit bc70281

Browse files
authored
feat(argo-cd): Add annotations to PrometheusRule (argoproj#1700)
1 parent f5c5c14 commit bc70281

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

charts/argo-cd/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.5.4
33
kubeVersion: ">=1.22.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 5.16.2
6+
version: 5.16.3
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -23,4 +23,4 @@ dependencies:
2323
condition: redis-ha.enabled
2424
annotations:
2525
artifacthub.io/changes: |
26-
- "[Changed]: Update ArgoCD to v2.5.4"
26+
- "[Added]: Add annotations to PrometheusRule"

charts/argo-cd/templates/argocd-application-controller/prometheusrule.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ metadata:
1414
{{- if .Values.controller.metrics.rules.additionalLabels }}
1515
{{- toYaml .Values.controller.metrics.rules.additionalLabels | nindent 4 }}
1616
{{- end }}
17+
{{- with .Values.controller.metrics.rules.annotations }}
18+
annotations:
19+
{{- toYaml . | nindent 4 }}
20+
{{- end }}
1721
spec:
1822
groups:
1923
- name: argocd

charts/argo-cd/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ controller:
705705
# prometheus: kube-prometheus
706706
# namespace: monitoring
707707
# additionalLabels: {}
708+
# annotations: {}
708709

709710
## Enable if you would like to grant rights to Argo CD to deploy to the local Kubernetes cluster.
710711
clusterAdminAccess:

0 commit comments

Comments
 (0)