Skip to content

Commit f98e71e

Browse files
authored
feat: Allow to configure and deploy RDMA CNI image (#896)
Allow to configure and deploy RDMA CNI image
2 parents 54ea0e0 + 060d836 commit f98e71e

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

deployment/network-operator/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ sriov-network-operator:
118118
sriovCni: ghcr.io/k8snetworkplumbingwg/sriov-cni:3e6368077716f6b8368b0e036a1290d1c64cf1fb
119119
ibSriovCni: ghcr.io/k8snetworkplumbingwg/ib-sriov-cni:fc002af57a81855542759d0f77d16dacd7e1aa38
120120
ovsCni: "" # skip deployment by default
121-
# ovsCni: nvcr.io/nvstaging/mellanox/ovs-cni-plugin:8b231bb
121+
# ovsCni: nvcr.io/nvstaging/mellanox/ovs-cni-plugin:8b231bb
122+
# rdmaCni: ghcr.io/k8snetworkplumbingwg/rdma-cni:latest
122123
sriovDevicePlugin: ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin:e6ead1e8f76a407783430ee2666b403db2d76f64
123124
resourcesInjector: ghcr.io/k8snetworkplumbingwg/network-resources-injector:8810e6a127366cc1eb829d3f7cb3f866d096946e
124125
webhook: nvcr.io/nvstaging/mellanox/sriov-network-operator-webhook:network-operator-24.4.0-beta.4

hack/release.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type Release struct {
5252
NicFeatureDiscovery *mellanoxv1alpha1.ImageSpec
5353
DOCATelemetryService *mellanoxv1alpha1.ImageSpec
5454
OVSCni *mellanoxv1alpha1.ImageSpec
55+
RDMACni *mellanoxv1alpha1.ImageSpec
5556
}
5657

5758
func readDefaults(releaseDefaults string) Release {
@@ -99,6 +100,7 @@ func readEnvironmentVariables(release *Release) {
99100
initWithEnvVariale("NIC_FEATURE_DISCOVERY", release.NicFeatureDiscovery)
100101
initWithEnvVariale("DOCA_TELEMETRY_SERVICE", release.DOCATelemetryService)
101102
initWithEnvVariale("OVS_CNI", release.OVSCni)
103+
initWithEnvVariale("RDMA_CNI", release.RDMACni)
102104
}
103105

104106
func main() {

hack/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ ovsCni:
7373
image: ovs-cni-plugin
7474
repository: nvcr.io/nvstaging/mellanox
7575
version: 8b231bb
76+
rdmaCni:
77+
image: rdma-cni
78+
repository: ghcr.io/k8snetworkplumbingwg
79+
version: latest

hack/templates/values/values.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ sriov-network-operator:
118118
sriovCni: {{ .SriovCni.Repository }}/{{ .SriovCni.Image }}:{{ .SriovCni.Version }}
119119
ibSriovCni: {{ .SriovIbCni.Repository }}/{{ .SriovIbCni.Image }}:{{ .SriovIbCni.Version }}
120120
ovsCni: "" # skip deployment by default
121-
# ovsCni: {{ .OVSCni.Repository }}/{{ .OVSCni.Image }}:{{ .OVSCni.Version }}
121+
# ovsCni: {{ .OVSCni.Repository }}/{{ .OVSCni.Image }}:{{ .OVSCni.Version }}
122+
# rdmaCni: {{ .RDMACni.Repository }}/{{ .RDMACni.Image }}:{{ .RDMACni.Version }}
122123
sriovDevicePlugin: {{ .SriovDevicePlugin.Repository }}/{{ .SriovDevicePlugin.Image }}:{{ .SriovDevicePlugin.Version }}
123124
resourcesInjector: ghcr.io/k8snetworkplumbingwg/network-resources-injector:8810e6a127366cc1eb829d3f7cb3f866d096946e
124125
webhook: {{ .SriovNetworkOperatorWebhook.Repository }}/{{ .SriovNetworkOperatorWebhook.Image }}:{{ .SriovNetworkOperatorWebhook.Version }}

0 commit comments

Comments
 (0)