Skip to content

Commit ad8d48c

Browse files
authored
feat(argo-cd): make PrometheusRule deployment conditional on CRD exis… (argoproj#2791)
1 parent 2ba2eb3 commit ad8d48c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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.11.3
33
kubeVersion: ">=1.23.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 7.2.1
6+
version: 7.3.0
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -27,4 +27,4 @@ annotations:
2727
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2828
artifacthub.io/changes: |
2929
- kind: changed
30-
description: Default argocd repo-server init container replicas to empty
30+
description: make PrometheusRule deployment conditional on CRD existence

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.rules.enabled }}
1+
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") .Values.controller.metrics.enabled .Values.controller.metrics.rules.enabled }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: PrometheusRule
44
metadata:

0 commit comments

Comments
 (0)