Procházet zdrojové kódy

fix all prometheus references in integration k

Grega Bremec před 2 roky
rodič
revize
3fd99103e7

+ 1 - 0
deployment/integrate/custom/fix-podmonitor-namespace.json

@@ -1,3 +1,4 @@
 [
     { "op": "replace", "path": "/metadata/namespace", "value": "your-prometheus-namespace" }
 ]
+

+ 3 - 0
deployment/integrate/custom/fix-prometheus-namespace.json

@@ -0,0 +1,3 @@
+[
+    { "op": "replace", "path": "/subjects[0]/namespace", "value": "your-prometheus-namespace" }
+]

+ 11 - 0
deployment/integrate/custom/fix-prometheus-namespace.yml

@@ -0,0 +1,11 @@
+apiVersion: builtin
+kind: PatchJson6902Transformer
+metadata:
+  name: fix-namespace-of-prometheus-serviceaccount
+target:
+  group: rbac.authorization.k8s.io
+  version: v1
+  kind: RoleBinding
+  name: prometheus-scrape
+# Set the project in this file ("value:") to wherever your Prometheus is.
+path: fix-prometheus-namespace.json

+ 1 - 1
deployment/integrate/custom/kustomization.yml

@@ -4,4 +4,4 @@ resources:
   - ../base/
 transformers:
   - use-custom-namespace.yml
-  - fix-podmonitor-namespace.yml
+  - fix-prometheus-namespace.yml