From dcbcef13b4955e10eed3f76b65f5f0789d6d1101 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Thu, 25 Oct 2018 19:15:25 +0200 Subject: [PATCH] e2e: simplify gcePD .yaml files Setting command line arguments via env variables that are not needed by the binaries is just unnecessarily complex. The driver renaming code in the E2E manifest PR would have to be made more complex to deal with such a deployment. It is easier for that code and humans who look at the .yaml file to remove the indirection. --- .../storage-csi/gce-pd/controller_ss.yaml | 14 +++----------- .../storage-csi/gce-pd/node_ds.yaml | 12 +++--------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml b/test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml index 82c153f5a1a..5bfb920d835 100644 --- a/test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml +++ b/test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml @@ -20,10 +20,7 @@ spec: args: - "--v=5" - "--provisioner=com.google.csi.gcepd" - - "--csi-address=$(ADDRESS)" - env: - - name: ADDRESS - value: /csi/csi.sock + - "--csi-address=/csi/csi.sock" volumeMounts: - name: socket-dir mountPath: /csi @@ -32,10 +29,7 @@ spec: image: quay.io/k8scsi/csi-attacher:v0.2.0 args: - "--v=5" - - "--csi-address=$(ADDRESS)" - env: - - name: ADDRESS - value: /csi/csi.sock + - "--csi-address=/csi/csi.sock" volumeMounts: - name: socket-dir mountPath: /csi @@ -44,11 +38,9 @@ spec: image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha args: - "--v=5" - - "--endpoint=$(CSI_ENDPOINT)" + - "--endpoint=unix:///csi/csi.sock" - "--nodeid=$(KUBE_NODE_NAME)" env: - - name: CSI_ENDPOINT - value: unix:///csi/csi.sock - name: KUBE_NODE_NAME valueFrom: fieldRef: diff --git a/test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml b/test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml index 85be59f7a11..73af809f566 100644 --- a/test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml +++ b/test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml @@ -18,13 +18,9 @@ spec: image: quay.io/k8scsi/driver-registrar:v0.3.0 args: - "--v=5" - - "--csi-address=$(ADDRESS)" - - "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)" + - "--csi-address=/csi/csi.sock" + - "--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock" env: - - name: ADDRESS - value: /csi/csi.sock - - name: DRIVER_REG_SOCK_PATH - value: /var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock - name: KUBE_NODE_NAME valueFrom: fieldRef: @@ -41,11 +37,9 @@ spec: image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha args: - "--v=5" - - "--endpoint=$(CSI_ENDPOINT)" + - "--endpoint=unix:///csi/csi.sock" - "--nodeid=$(KUBE_NODE_NAME)" env: - - name: CSI_ENDPOINT - value: unix:///csi/csi.sock - name: KUBE_NODE_NAME valueFrom: fieldRef: