fix(argo-cd): Always create ApplicationSet as following upstream (#2688)

This commit is contained in:
yuki.kitakata 2024-05-13 13:31:48 +09:00 committed by GitHub
parent 3693ed4270
commit 510261328f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 14 additions and 34 deletions

View file

@ -1,4 +1,3 @@
{{- if .Values.applicationSet.enabled }}
{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") .Values.applicationSet.metrics.enabled .Values.applicationSet.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
@ -49,4 +48,3 @@ spec:
matchLabels:
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.applicationSet.name "name" "metrics") | nindent 6 }}
{{- end }}
{{- end }}