Skip to content

Commit

Permalink
update chart helpers
Browse files Browse the repository at this point in the history
update default values of the following vars:
- sriov-network-operator.name
- sriov-network-operator.fullname

use value "sriov-network-operator" instead of chart name
which is now "sriov-network-operator-chart" to avoid wierd
naming of the operator deployment e.g:

sriov-network-operator-sriov-network-operator-chart

this change will keep the same naming convention as it was
before changing the chart name from sriov-network-operator
to sriov-network-operator-chart

Signed-off-by: adrianc <[email protected]>
  • Loading branch information
adrianchiris committed Jun 16, 2024
1 parent 12ffb70 commit df0bc25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Expand the name of the chart.
*/}}
{{- define "sriov-network-operator.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- default "sriov-network-operator" .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand All @@ -14,7 +14,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- $name := default "sriov-network-operator" .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand Down

0 comments on commit df0bc25

Please sign in to comment.