Skip to content

Commit d860200

Browse files
committed
Align templates and generate files
cherry pick of nv-ipam support from v23.1.x-nv-ipam branch did not contain this templates alignment. while the one from master did. align templates and template generation for this branch. Signed-off-by: adrianc <[email protected]>
1 parent 5312799 commit d860200

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

deployment/network-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ operator:
131131
- key: "node-role.kubernetes.io/control-plane"
132132
operator: In
133133
values: [ "" ]
134-
repository: nvcr.io/nvstaging/mellanox
134+
repository: nvcr.io/nvidia/cloud-native
135135
image: network-operator
136136
# imagePullSecrets: []
137137
nameOverride: ""

hack/release.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type Release struct {
4444
Multus *mellanoxv1alpha1.ImageSpec
4545
Ipoib *mellanoxv1alpha1.ImageSpec
4646
IpamPlugin *mellanoxv1alpha1.ImageSpec
47+
NvIPAM *mellanoxv1alpha1.ImageSpec
4748
}
4849

4950
func readDefaults(releaseDefaults string) Release {
@@ -86,6 +87,7 @@ func readEnvironmentVariables(release *Release) {
8687
initWithEnvVariale("MULTUS", release.Multus)
8788
initWithEnvVariale("IPOIB", release.Ipoib)
8889
initWithEnvVariale("IPAM_PLUGIN", release.Ipoib)
90+
initWithEnvVariale("NV_IPAM", release.NvIPAM)
8991
}
9092

9193
func main() {

hack/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ IpamPlugin:
4949
image: whereabouts
5050
repository: ghcr.io/k8snetworkplumbingwg
5151
version: v0.6.1-amd64
52+
NvIpam:
53+
image: nvidia-k8s-ipam
54+
repository: ghcr.io/mellanox
55+
version: v0.0.2

hack/templates/values/values.template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ nfd:
2222
psp:
2323
enabled: false
2424

25+
upgradeCRDs: true
26+
2527
sriovNetworkOperator:
2628
enabled: false
2729
# inject additional values to nodeSelector for config daemon
@@ -230,6 +232,15 @@ ibKubernetes:
230232
pKeyGUIDPoolRangeEnd: "02:FF:FF:FF:FF:FF:FF:FF"
231233
ufmSecret: # specify the secret name here
232234

235+
nvIpam:
236+
deploy: false
237+
image: {{ .NvIPAM.Image }}
238+
repository: {{ .NvIPAM.Repository }}
239+
version: {{ .NvIPAM.Version }}
240+
# imagePullSecrets: []
241+
# network pool configuration as described in https://github.com/Mellanox/nvidia-k8s-ipam
242+
config: ''
243+
233244
secondaryNetwork:
234245
deploy: true
235246
cniPlugins:

0 commit comments

Comments
 (0)