mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
Disable drift detection for kube-prometheus-stack webhooks
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
eabd250ed2
commit
06ed881e37
1 changed files with 19 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ spec:
|
||||||
interval: 5m
|
interval: 5m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
version: "41.x"
|
version: "45.x"
|
||||||
chart: kube-prometheus-stack
|
chart: kube-prometheus-stack
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
|
|
@ -31,3 +31,21 @@ spec:
|
||||||
podMonitorSelector:
|
podMonitorSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: monitoring
|
app.kubernetes.io/component: monitoring
|
||||||
|
postRenderers:
|
||||||
|
- kustomize:
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
# Ignore these objects from Flux diff as they are mutated from chart hooks
|
||||||
|
kind: (ValidatingWebhookConfiguration|MutatingWebhookConfiguration)
|
||||||
|
name: kube-prometheus-stack-admission
|
||||||
|
patch: |
|
||||||
|
- op: add
|
||||||
|
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
|
||||||
|
value: disabled
|
||||||
|
- target:
|
||||||
|
# Ignore these objects from Flux diff as they are mutated at apply time but not at dry-run time
|
||||||
|
kind: PrometheusRule
|
||||||
|
patch: |
|
||||||
|
- op: add
|
||||||
|
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
|
||||||
|
value: disabled
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue