Skip to content

Commit

Permalink
CSI e2e test: driver registrar updates for moving PluginWatcher to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
verult authored and Renaud Gaubert committed Sep 5, 2018
1 parent a92bb07 commit add6e0d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
16 changes: 15 additions & 1 deletion test/e2e/storage/csi_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var csiImageVersions = map[string]string{
"hostpathplugin": "v0.2.0",
"csi-attacher": "v0.2.0",
"csi-provisioner": "v0.2.1",
"driver-registrar": "v0.2.0",
"driver-registrar": "v0.3.0",
}

func csiContainerImage(image string) string {
Expand Down Expand Up @@ -239,6 +239,7 @@ func csiHostPathPod(
Args: []string{
"--v=5",
"--csi-address=/csi/csi.sock",
"--kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath/csi.sock",
},
Env: []v1.EnvVar{
{
Expand All @@ -255,6 +256,10 @@ func csiHostPathPod(
Name: "socket-dir",
MountPath: "/csi",
},
{
Name: "registration-dir",
MountPath: "/registration",
},
},
},
{
Expand Down Expand Up @@ -327,6 +332,15 @@ func csiHostPathPod(
},
},
},
{
Name: "registration-dir",
VolumeSource: v1.VolumeSource{
HostPath: &v1.HostPathVolumeSource{
Path: "/var/lib/kubelet/plugins",
Type: &hostPathType,
},
},
},
{
Name: "mountpoint-dir",
VolumeSource: v1.VolumeSource{
Expand Down
11 changes: 10 additions & 1 deletion test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@ spec:
containers:
- name: csi-driver-registrar
imagePullPolicy: Always
image: quay.io/k8scsi/driver-registrar:v0.2.0
image: quay.io/k8scsi/driver-registrar:v0.3.0
args:
- "--v=5"
- "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
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:
fieldPath: spec.nodeName
volumeMounts:
- name: plugin-dir
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: gce-driver
securityContext:
privileged: true
Expand Down Expand Up @@ -63,6 +68,10 @@ spec:
hostPath:
path: /var/lib/kubelet/plugins/com.google.csi.gcepd/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins/
type: Directory
- name: device-dir
hostPath:
path: /dev
Expand Down

0 comments on commit add6e0d

Please sign in to comment.