Skip to content

Commit 718a4ad

Browse files
committed
refactor: template NFD image with .Chart.Version
1 parent 20f3e42 commit 718a4ad

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

charts/cluster-api-runtime-extensions-nutanix/templates/nfd/manifests/helm-addon-installation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ metadata:
88
name: '{{ .Values.hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name }}'
99
data:
1010
values.yaml: |-
11+
image:
12+
tag: v{{ .Chart.Version }}-minimal
1113
master:
1214
extraLabelNs:
1315
- nvidia.com

pkg/handlers/generic/lifecycle/nfd/strategy_helmaddon.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ func (s helmAddonStrategy) apply(
6161
)
6262
}
6363

64-
values := valuesTemplateConfigMap.Data["values.yaml"]
65-
values += fmt.Sprintf(`
66-
image:
67-
tag: v%s-minimal
68-
`, s.helmChart.Version)
69-
7064
hcp := &caaphv1.HelmChartProxy{
7165
TypeMeta: metav1.TypeMeta{
7266
APIVersion: caaphv1.GroupVersion.String(),

0 commit comments

Comments
 (0)