Skip to content

Commit

Permalink
refactor: template NFD image with .Chart.Version
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Apr 16, 2024
1 parent 20f3e42 commit 718a4ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
name: '{{ .Values.hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name }}'
data:
values.yaml: |-
image:
tag: v{{ .Chart.Version }}-minimal
master:
extraLabelNs:
- nvidia.com
Expand Down
6 changes: 0 additions & 6 deletions pkg/handlers/generic/lifecycle/nfd/strategy_helmaddon.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ func (s helmAddonStrategy) apply(
)
}

values := valuesTemplateConfigMap.Data["values.yaml"]
values += fmt.Sprintf(`
image:
tag: v%s-minimal
`, s.helmChart.Version)

hcp := &caaphv1.HelmChartProxy{
TypeMeta: metav1.TypeMeta{
APIVersion: caaphv1.GroupVersion.String(),
Expand Down

0 comments on commit 718a4ad

Please sign in to comment.