Skip to content

Commit 1e5b8bb

Browse files
committed
Revert "refactor: template NFD image with .Chart.Version"
This reverts commit 718a4ad.
1 parent 93c227f commit 1e5b8bb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ func (s helmAddonStrategy) apply(
6666
)
6767
}
6868

69+
values := valuesTemplateConfigMap.Data["values.yaml"]
70+
values += fmt.Sprintf(`
71+
image:
72+
tag: v%s-minimal
73+
`, s.helmChart.Version)
74+
6975
hcp := &caaphv1.HelmChartProxy{
7076
TypeMeta: metav1.TypeMeta{
7177
APIVersion: caaphv1.GroupVersion.String(),

0 commit comments

Comments
 (0)