Skip to content

Commit

Permalink
Merge pull request #88 from wisererik/master
Browse files Browse the repository at this point in the history
Update kubernetes deploy script of CSI plugin
  • Loading branch information
leonwanghui authored Apr 25, 2018
2 parents b636958 + 1ba846c commit e750fd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions csi/server/deploy/kubernetes/csi-nodeplugin-opensdsplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ spec:
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /csi/csi.sock
value: /var/lib/kubelet/plugins/csi-opensdsplugin/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: socket-dir
mountPath: /csi
mountPath: /var/lib/kubelet/plugins/csi-opensdsplugin
- name: opensds
securityContext:
privileged: true
Expand All @@ -44,7 +44,7 @@ spec:
- "--opensdsEndpoint=$(OPENSDS_ENDPOINT)"
env:
- name: CSI_ENDPOINT
value: unix://csi/csi.sock
value: unix://var/lib/kubelet/plugins/csi-opensdsplugin/csi.sock
- name: OPENSDS_ENDPOINT
valueFrom:
configMapKeyRef:
Expand All @@ -53,7 +53,7 @@ spec:
imagePullPolicy: "IfNotPresent"
volumeMounts:
- name: socket-dir
mountPath: /csi
mountPath: /var/lib/kubelet/plugins/csi-opensdsplugin
- name: pods-mount-dir
mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional"
Expand All @@ -67,7 +67,7 @@ spec:
volumes:
- name: socket-dir
hostPath:
path: /csi
path: /var/lib/kubelet/plugins/csi-opensdsplugin
type: DirectoryOrCreate
- name: pods-mount-dir
hostPath:
Expand Down
2 changes: 0 additions & 2 deletions csi/server/plugin/opensds/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"

csi "github.com/container-storage-interface/spec/lib/go/csi/v0"
"github.com/opensds/nbp/client/iscsi"
sdscontroller "github.com/opensds/nbp/client/opensds"
"github.com/opensds/opensds/pkg/model"
"golang.org/x/net/context"
Expand Down Expand Up @@ -163,7 +162,6 @@ func (p *Plugin) ControllerPublishVolume(
Host: req.NodeId,
Platform: runtime.GOARCH,
OsType: runtime.GOOS,
Ip: iscsi.GetHostIp(),
Initiator: localIqn,
},
Metadata: req.VolumeAttributes,
Expand Down

0 comments on commit e750fd9

Please sign in to comment.