From a3b63cd89506b259571a2cc6818aa5088e907571 Mon Sep 17 00:00:00 2001 From: Anna Goncharova Date: Fri, 22 Mar 2024 15:43:56 -0700 Subject: [PATCH] Relabel cluster to flink-cluster --- charts/flink-operator/Chart.yaml | 2 +- charts/flink-operator/README.md | 2 +- charts/flink-operator/templates/podmonitor.yaml | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/flink-operator/Chart.yaml b/charts/flink-operator/Chart.yaml index b5803ca7..dac2096b 100644 --- a/charts/flink-operator/Chart.yaml +++ b/charts/flink-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Intalls the Spotify-version of the Flink-on-K8S-Operator name: flink-operator -version: 0.0.1 +version: 0.1.0 appVersion: v0.3.0 sources: - https://github.com/spotify/flink-on-k8s-operator/releases diff --git a/charts/flink-operator/README.md b/charts/flink-operator/README.md index 13de9ec5..9a4820ef 100644 --- a/charts/flink-operator/README.md +++ b/charts/flink-operator/README.md @@ -1,6 +1,6 @@ # flink-operator -![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![AppVersion: v0.3.0](https://img.shields.io/badge/AppVersion-v0.3.0-informational?style=flat-square) +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.3.0](https://img.shields.io/badge/AppVersion-v0.3.0-informational?style=flat-square) Intalls the Spotify-version of the Flink-on-K8S-Operator diff --git a/charts/flink-operator/templates/podmonitor.yaml b/charts/flink-operator/templates/podmonitor.yaml index 56adb2bb..8299cb6a 100644 --- a/charts/flink-operator/templates/podmonitor.yaml +++ b/charts/flink-operator/templates/podmonitor.yaml @@ -6,7 +6,6 @@ metadata: name: {{ .Release.Name }} spec: podTargetLabels: - - cluster - component selector: matchLabels: @@ -14,4 +13,8 @@ spec: # Specify the port name of the exposed metric port podMetricsEndpoints: - port: prom + relabelings: + - action: replace + sourceLabels: [ __meta_kubernetes_pod_label_cluster ] + targetLabel: flink_cluster {{ end -}}