mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
This reverts commit 590dce5830
.
This will ensure servicemonitor can be enabled with ArgoCD which doesn't support querying API capabilities
Fixes #8891
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
bed463214e
commit
830e4290ff
5 changed files with 4 additions and 6 deletions
|
@ -35,8 +35,6 @@ annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: support for GrafanaDashboard custom resource
|
description: support for GrafanaDashboard custom resource
|
||||||
- kind: changed
|
|
||||||
description: only create ServiceMonitor if cluster supports it
|
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: rbac templating issues
|
description: rbac templating issues
|
||||||
- kind: added
|
- kind: added
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if and .Values.admissionController.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") }}
|
{{- if .Values.admissionController.serviceMonitor.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.backgroundController.enabled -}}
|
{{- if .Values.backgroundController.enabled -}}
|
||||||
{{- if and .Values.backgroundController.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") -}}
|
{{- if .Values.backgroundController.serviceMonitor.enabled -}}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.cleanupController.enabled -}}
|
{{- if .Values.cleanupController.enabled -}}
|
||||||
{{- if and .Values.cleanupController.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") -}}
|
{{- if .Values.cleanupController.serviceMonitor.enabled -}}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if .Values.reportsController.enabled -}}
|
{{- if .Values.reportsController.enabled -}}
|
||||||
{{- if and .Values.reportsController.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") -}}
|
{{- if .Values.reportsController.serviceMonitor.enabled -}}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Add table
Reference in a new issue