From fc6590821e34373d41846615d0ec0f6ce09ab044 Mon Sep 17 00:00:00 2001 From: bschmitt Date: Thu, 11 Apr 2024 21:29:01 -0500 Subject: [PATCH] remove chart version from label --- charts/newrelic-agent-operator/Chart.yaml | 2 +- charts/newrelic-agent-operator/templates/_helpers.tpl | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/charts/newrelic-agent-operator/Chart.yaml b/charts/newrelic-agent-operator/Chart.yaml index 35f6e48..00237c4 100644 --- a/charts/newrelic-agent-operator/Chart.yaml +++ b/charts/newrelic-agent-operator/Chart.yaml @@ -13,7 +13,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.4 +version: 0.0.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/charts/newrelic-agent-operator/templates/_helpers.tpl b/charts/newrelic-agent-operator/templates/_helpers.tpl index db24c4a..1bfe71d 100644 --- a/charts/newrelic-agent-operator/templates/_helpers.tpl +++ b/charts/newrelic-agent-operator/templates/_helpers.tpl @@ -27,7 +27,7 @@ If release name contains chart name it will be used as a full name. Create chart name and version as used by the chart label. */}} {{- define "newrelic-agent-operator.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- printf "%s" .Chart.Name | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} {{/* @@ -36,9 +36,6 @@ Common labels {{- define "newrelic-agent-operator.labels" -}} helm.sh/chart: {{ include "newrelic-agent-operator.chart" . }} {{ include "newrelic-agent-operator.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} @@ -82,4 +79,4 @@ Returns if the template should render, it checks if the required values are set. {{- define "newrelic-agent-operator.areValuesValid" -}} {{- $licenseKey := include "newrelic-agent-operator.licenseKey" . -}} {{- and (or $licenseKey)}} -{{- end -}} \ No newline at end of file +{{- end -}}