Skip to content

Commit

Permalink
fix: driver deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Feb 3, 2022
1 parent 3ff83a4 commit bed795c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions cmd/iscsiplugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ import (
"flag"
"os"

"k8s.io/klog/v2"

"github.com/kubernetes-csi/csi-driver-iscsi/pkg/iscsi"
"k8s.io/klog/v2"
)

var (
Expand All @@ -31,10 +30,11 @@ var (
)

func init() {
klog.InitFlags(nil)
_ = flag.Set("logtostderr", "true")
}

func main() {
klog.InitFlags(nil)
flag.Parse()
handle()
os.Exit(0)
Expand Down
14 changes: 7 additions & 7 deletions deploy/csi-iscsi-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: pods-mount-dir
mountPath: /var/lib/kubelet/pods
mountPropagation: "Bidirectional"
- name: mountpoint-dir
mountPath: /var/lib/kubelet/
mountPropagation: Bidirectional
- name: host-dev
mountPath: /dev
- name: host-root
Expand All @@ -121,14 +121,14 @@ spec:
hostPath:
path: /var/lib/kubelet/plugins/iscsi.csi.k8s.io
type: DirectoryOrCreate
- name: pods-mount-dir
- name: mountpoint-dir
hostPath:
path: /var/lib/kubelet/pods
type: Directory
path: /var/lib/kubelet/
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry
type: Directory
type: DirectoryOrCreate
- name: host-dev
hostPath:
path: /dev
Expand Down
2 changes: 1 addition & 1 deletion pkg/iscsi/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
var version = "0.1.0"

func NewDriver(nodeID, endpoint string) *driver {
klog.Infof("driver: %v version: %v", driverName, version)
klog.Infof("driver: %s version: %s nodeID: %s endpoint: %s", driverName, version, nodeID, endpoint)

d := &driver{
name: driverName,
Expand Down

0 comments on commit bed795c

Please sign in to comment.