فهرست منبع

json patch separate from yaml

Grega Bremec 2 سال پیش
والد
کامیت
a215ee9927

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

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

+ 2 - 5
deployment/integrate/custom/fix-podmonitor-namespace.yml

@@ -7,8 +7,5 @@ target:
   version: v1
   kind: PodMonitor
   name: exporter-monitor
-patch: |-
-  - op: replace
-    path: /metadata/namespace
-    # Set this to wherever your prometheus is.
-    value: your-prometheus-namespace
+# Set the project in this file ("value:") to wherever your Prometheus is.
+path: fix-podmonitor-namespace.json