From 52316ea0c6eb0f4778408699129a4d3b8f9d691b Mon Sep 17 00:00:00 2001 From: Delnat Wito Date: Fri, 11 Oct 2024 14:24:35 +0200 Subject: [PATCH] fix: remove version label --- charts/testkube-cloud-api/templates/_helpers.tpl | 2 ++ charts/testkube-cloud-ui/templates/_helpers.tpl | 2 ++ charts/testkube-logs-service/templates/_helpers.tpl | 2 ++ charts/testkube-worker-service/templates/_helpers.tpl | 2 ++ 4 files changed, 8 insertions(+) diff --git a/charts/testkube-cloud-api/templates/_helpers.tpl b/charts/testkube-cloud-api/templates/_helpers.tpl index 9013214b7..3d4ed7994 100644 --- a/charts/testkube-cloud-api/templates/_helpers.tpl +++ b/charts/testkube-cloud-api/templates/_helpers.tpl @@ -34,7 +34,9 @@ Create chart name and version as used by the chart label. Common Testkube labels */}} {{- define "testkube-cloud-api.labels" -}} +{{- if not (.Values.global.noVersionLabel | default false) }} app.kubernetes.io/version: {{ .Values.image.tag | quote }} +{{- end }} app.kubernetes.io/component: backend {{ include "testkube-cloud-api.selectorLabels" . }} {{ include "testkube-cloud-api.baseLabels" . }} diff --git a/charts/testkube-cloud-ui/templates/_helpers.tpl b/charts/testkube-cloud-ui/templates/_helpers.tpl index d587e6e18..0be2ceba0 100644 --- a/charts/testkube-cloud-ui/templates/_helpers.tpl +++ b/charts/testkube-cloud-ui/templates/_helpers.tpl @@ -36,7 +36,9 @@ Common labels {{- define "testkube-cloud-ui.labels" -}} helm.sh/chart: {{ include "testkube-cloud-ui.chart" . }} {{ include "testkube-cloud-ui.selectorLabels" . }} +{{- if not (.Values.global.noVersionLabel | default false) }} app.kubernetes.io/version: {{ .Values.image.tag | quote }} +{{- end}} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: frontend app.kubernetes.io/part-of: testkube-{{ if .Values.global.enterpriseMode }}enterprise{{ else }}cloud{{ end }} diff --git a/charts/testkube-logs-service/templates/_helpers.tpl b/charts/testkube-logs-service/templates/_helpers.tpl index ee6deafa4..02cc70f64 100644 --- a/charts/testkube-logs-service/templates/_helpers.tpl +++ b/charts/testkube-logs-service/templates/_helpers.tpl @@ -34,7 +34,9 @@ Create chart name and version as used by the chart label. Common Testkube labels */}} {{- define "testkube-log-service.labels" -}} +{{- if not (.Values.global.noVersionLabel | default false) }} app.kubernetes.io/version: {{ .Values.image.tag | quote }} +{{- end }} app.kubernetes.io/component: backend {{ include "testkube-log-service.selectorLabels" . }} {{ include "testkube-log-service.baseLabels" . }} diff --git a/charts/testkube-worker-service/templates/_helpers.tpl b/charts/testkube-worker-service/templates/_helpers.tpl index 83b9ddbf2..3a7d68939 100644 --- a/charts/testkube-worker-service/templates/_helpers.tpl +++ b/charts/testkube-worker-service/templates/_helpers.tpl @@ -34,7 +34,9 @@ Create chart name and version as used by the chart label. Common Testkube labels */}} {{- define "testkube-worker-service.labels" -}} +{{- if not (.Values.global.noVersionLabel | default false) }} app.kubernetes.io/version: {{ .Values.image.tag | quote }} +{{- end }} app.kubernetes.io/component: backend {{ include "testkube-worker-service.selectorLabels" . }} {{ include "testkube-worker-service.baseLabels" . }}