소스 검색

json patch separate from yaml

Grega Bremec 2 년 전
부모
커밋
a215ee9927
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 0
      deployment/integrate/custom/fix-podmonitor-namespace.json
  2. 2 5
      deployment/integrate/custom/fix-podmonitor-namespace.yml

+ 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