Commit dcbcef13 authored by Patrick Ohly's avatar Patrick Ohly

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.
parent 1effe0ca
...@@ -20,10 +20,7 @@ spec: ...@@ -20,10 +20,7 @@ spec:
args: args:
- "--v=5" - "--v=5"
- "--provisioner=com.google.csi.gcepd" - "--provisioner=com.google.csi.gcepd"
- "--csi-address=$(ADDRESS)" - "--csi-address=/csi/csi.sock"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi
...@@ -32,10 +29,7 @@ spec: ...@@ -32,10 +29,7 @@ spec:
image: quay.io/k8scsi/csi-attacher:v0.2.0 image: quay.io/k8scsi/csi-attacher:v0.2.0
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=/csi/csi.sock"
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi
...@@ -44,11 +38,9 @@ spec: ...@@ -44,11 +38,9 @@ spec:
image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha
args: args:
- "--v=5" - "--v=5"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=unix:///csi/csi.sock"
- "--nodeid=$(KUBE_NODE_NAME)" - "--nodeid=$(KUBE_NODE_NAME)"
env: env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: KUBE_NODE_NAME - name: KUBE_NODE_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
......
...@@ -18,13 +18,9 @@ spec: ...@@ -18,13 +18,9 @@ spec:
image: quay.io/k8scsi/driver-registrar:v0.3.0 image: quay.io/k8scsi/driver-registrar:v0.3.0
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=/csi/csi.sock"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)" - "--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
env: 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 - name: KUBE_NODE_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
...@@ -41,11 +37,9 @@ spec: ...@@ -41,11 +37,9 @@ spec:
image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha image: gcr.io/google-containers/volume-csi/gcp-compute-persistent-disk-csi-driver:v0.1.0.alpha
args: args:
- "--v=5" - "--v=5"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=unix:///csi/csi.sock"
- "--nodeid=$(KUBE_NODE_NAME)" - "--nodeid=$(KUBE_NODE_NAME)"
env: env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: KUBE_NODE_NAME - name: KUBE_NODE_NAME
valueFrom: valueFrom:
fieldRef: fieldRef:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment