From 0bb6ffe9a01534b57dd29594a6c669facfaadf32 Mon Sep 17 00:00:00 2001 From: Christian Coffield Date: Thu, 20 Jun 2024 13:33:48 +0530 Subject: [PATCH] CSI-Unity: Update usage of env X_CSI_ALLOWED_NETWORKS (#606) * update usage of env X_CSI_ALLOWED_NETWORKS * update config sample yaml * update env in node.yaml --- config/samples/storage_v1_csm_unity.yaml | 8 ++++---- operatorconfig/driverconfig/unity/v2.11.0/node.yaml | 2 ++ samples/storage_csm_unity_v2110.yaml | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config/samples/storage_v1_csm_unity.yaml b/config/samples/storage_v1_csm_unity.yaml index b7b08c7f8..210dc1702 100644 --- a/config/samples/storage_v1_csm_unity.yaml +++ b/config/samples/storage_v1_csm_unity.yaml @@ -140,11 +140,11 @@ spec: value: "false" # X_CSI_ALLOWED_NETWORKS: Custom networks for Unity export # Specify list of networks which can be used for NFS I/O traffic; CIDR format should be used. - # Allowed values: list of one or more networks - # Default value: None - # Provide them in the following format: "net1 net2" + # Allowed values: list of one or more networks (comma separated) + # Default value: "" + # Provide them in the following format: "net1, net2" # CIDR format should be used - # eg: "192.168.1.0/24 192.168.100.0/22" + # eg: "192.168.1.0/24, 192.168.100.0/22" - name: X_CSI_ALLOWED_NETWORKS value: "" # nodeSelector: Define node selection constraints for node pods. diff --git a/operatorconfig/driverconfig/unity/v2.11.0/node.yaml b/operatorconfig/driverconfig/unity/v2.11.0/node.yaml index f914f5f96..46bd5cc87 100644 --- a/operatorconfig/driverconfig/unity/v2.11.0/node.yaml +++ b/operatorconfig/driverconfig/unity/v2.11.0/node.yaml @@ -111,6 +111,8 @@ spec: value: "" - name: X_CSI_UNITY_SKIP_CERTIFICATE_VALIDATION value: "true" + - name: X_CSI_ALLOWED_NETWORKS + value: "" volumeMounts: - name: driver-path mountPath: /var/lib/kubelet/plugins/unity.emc.dell.com diff --git a/samples/storage_csm_unity_v2110.yaml b/samples/storage_csm_unity_v2110.yaml index d5a80dce0..0d84d1859 100644 --- a/samples/storage_csm_unity_v2110.yaml +++ b/samples/storage_csm_unity_v2110.yaml @@ -142,11 +142,11 @@ spec: value: "false" # X_CSI_ALLOWED_NETWORKS: Custom networks for Unity export # Specify list of networks which can be used for NFS I/O traffic; CIDR format should be used. - # Allowed values: list of one or more networks - # Default value: None - # Provide them in the following format: "net1 net2" + # Allowed values: list of one or more networks (comma separated) + # Default value: "" + # Provide them in the following format: "net1, net2" # CIDR format should be used - # eg: "192.168.1.0/24 192.168.100.0/22" + # eg: "192.168.1.0/24, 192.168.100.0/22" - name: X_CSI_ALLOWED_NETWORKS value: "" # nodeSelector: Define node selection constraints for node pods.