From b6c98c93c7abeefd36ffee3712875d87d330a11a Mon Sep 17 00:00:00 2001 From: Jason Greathouse Date: Mon, 11 Dec 2023 11:17:04 -0600 Subject: [PATCH] update servicemonitor to add stack labels (#3782) --- .../templates/fog-ledger-router-servicemonitor.yaml | 4 ++++ .../fog-ledger/templates/fog-ledger-store-servicemonitor.yaml | 4 ++++ .../fog-view/templates/fog-view-router-servicemonitor.yaml | 4 ++++ .../fog-view/templates/fog-view-store-servicemonitor.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml b/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml index 0a271eba85..6851a79773 100644 --- a/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml +++ b/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml @@ -23,5 +23,9 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: ledger_stack --- {{- end }} diff --git a/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml b/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml index 3337fb38bf..cc286d50ca 100644 --- a/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml +++ b/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml @@ -21,4 +21,8 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: ledger_stack diff --git a/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml b/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml index 0f44fb4da7..2a0cdd8ff1 100644 --- a/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml +++ b/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml @@ -23,5 +23,9 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: view_stack --- {{- end }} diff --git a/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml b/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml index 783b14186e..88d8177fd9 100644 --- a/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml +++ b/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml @@ -21,4 +21,8 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: view_stack