Skip to content

Commit

Permalink
remove chart version from label
Browse files Browse the repository at this point in the history
  • Loading branch information
bpschmitt committed Apr 12, 2024
1 parent 846fafe commit fc65908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/newrelic-agent-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 2 additions & 5 deletions charts/newrelic-agent-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

{{/*
Expand All @@ -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 }}

Expand Down Expand Up @@ -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 -}}
{{- end -}}

0 comments on commit fc65908

Please sign in to comment.