Skip to content

Commit 075e30f

Browse files
committed
Disables Kustomize's content hash for generated additional config
1 parent b6dba46 commit 075e30f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

variants/prometheus-operator-example/additional-scrape-configs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ metadata:
66
namespace: monitoring
77
spec:
88
additionalScrapeConfigs:
9-
# github.com/kubernetes-sigs/kustomize/blob/master/examples/kvSourceGoPlugin.md is clearly WIP
10-
name: additional-scrape-configs-5m4c7m6mc9
9+
name: additional-scrape-configs
1110
# See https://github.com/prometheus/prometheus/pull/4131, and upon disagreement see https://github.com/prometheus/prometheus/issues/4484
1211
key: pods-discovery-by-prometheus-io-annotations.yaml

variants/prometheus-operator-example/kustomization.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ patchesStrategicMerge:
1919
- alertmanager-main-scale-1.yaml
2020
- prometheus-k8s-nodeport.yaml
2121
- additional-scrape-configs.yaml
22+
generatorOptions:
23+
disableNameSuffixHash: true
2224
secretGenerator:
2325
- name: additional-scrape-configs
2426
namespace: monitoring
25-
#kvSources:
26-
#- name: pods-discovery-by-prometheus-io-annotations.yaml
27-
#pluginType: builtin
28-
#args:
29-
#- scrape-configs/pods-discovery-by-prometheus-io-annotations.yaml
3027
files:
3128
- scrape-configs/pods-discovery-by-prometheus-io-annotations.yaml

0 commit comments

Comments
 (0)