mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-16 09:16:38 +00:00
Kubernetes v1.22 will stop serving API versions that were deprecated a while ago. This change cleans up any reference to these API versions in the operator's code and documentation. [1] https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 Signed-off-by: Simon Pasquier <spasquie@redhat.com>
27 lines
655 B
YAML
27 lines
655 B
YAML
apiVersion: admissionregistration.k8s.io/v1
|
|
kind: MutatingWebhookConfiguration
|
|
metadata:
|
|
name: prometheus-operator-rulesvalidation
|
|
webhooks:
|
|
- clientConfig:
|
|
service:
|
|
name: prometheus-operator
|
|
namespace: default
|
|
path: /admission-prometheusrules/mutate
|
|
|
|
failurePolicy: Fail
|
|
name: prometheusrulemutate.monitoring.coreos.com
|
|
namespaceSelector: {}
|
|
rules:
|
|
- apiGroups:
|
|
- monitoring.coreos.com
|
|
apiVersions:
|
|
- '*'
|
|
operations:
|
|
- CREATE
|
|
- UPDATE
|
|
resources:
|
|
- prometheusrules
|
|
sideEffects: None
|
|
admissionReviewVersions:
|
|
- v1
|