Skip to content

Commit

Permalink
fix: remove version label (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
WitoDelnat authored Oct 16, 2024
2 parents 7c4d2aa + 52316ea commit d59a774
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/testkube-cloud-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-cloud-ui/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-logs-service/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-worker-service/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down

0 comments on commit d59a774

Please sign in to comment.