From 9302785980a4fd4adf0d1958410a274bc8a8e7d3 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Fri, 10 May 2024 12:15:04 +0200 Subject: [PATCH] Use helm values to expand the supported NICs Signed-off-by: Manuel Buil --- deployment/sriov-network-operator/README.md | 1 + deployment/sriov-network-operator/templates/configmap.yaml | 3 +++ deployment/sriov-network-operator/values.yaml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/deployment/sriov-network-operator/README.md b/deployment/sriov-network-operator/README.md index 9cabcee74..56d7c1d4f 100644 --- a/deployment/sriov-network-operator/README.md +++ b/deployment/sriov-network-operator/README.md @@ -59,6 +59,7 @@ We have introduced the following Chart parameters. | Name | Type | Default | description | | ---- |------|---------|-------------| | `imagePullSecrets` | list | `[]` | An optional list of references to secrets to use for pulling any of the SR-IOV Network Operator image | +| `supportedExtraNICs` | list | `[]` | An optional list of whitelisted NICs | ### Operator parameters diff --git a/deployment/sriov-network-operator/templates/configmap.yaml b/deployment/sriov-network-operator/templates/configmap.yaml index b21b07ea6..6f6ab3bcc 100644 --- a/deployment/sriov-network-operator/templates/configmap.yaml +++ b/deployment/sriov-network-operator/templates/configmap.yaml @@ -38,3 +38,6 @@ data: Marvell_OCTEON_Fusion_CNF95XX: "177d b600 b603" Marvell_OCTEON10_CN10XXX: "177d b900 b903" Marvell_OCTEON_Fusion_CNF105XX: "177d ba00 ba03" + {{- range .Values.supportedExtraNICs }} + {{ . }} + {{- end }} diff --git a/deployment/sriov-network-operator/values.yaml b/deployment/sriov-network-operator/values.yaml index 0799b35ea..28a4d06dc 100644 --- a/deployment/sriov-network-operator/values.yaml +++ b/deployment/sriov-network-operator/values.yaml @@ -89,6 +89,9 @@ sriovOperatorConfig: # sriov-network-config-daemon configuration mode. either "daemon" or "systemd" configurationMode: daemon +# Example for supportedExtraNICs values ['MyNIC: "8086 1521 1520"'] +supportedExtraNICs: [] + # Image URIs for sriov-network-operator components images: operator: ghcr.io/k8snetworkplumbingwg/sriov-network-operator