Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit e405f76
Author: weizhichen <[email protected]>
Date:   Thu Aug 24 09:35:14 2023 +0000

    fix

commit de03fda
Author: weizhichen <[email protected]>
Date:   Thu Aug 24 09:33:26 2023 +0000

    fix

commit 2389047
Author: weizhichen <[email protected]>
Date:   Thu Aug 24 08:20:30 2023 +0000

    fix

commit 3834b62
Author: weizhichen <[email protected]>
Date:   Thu Aug 24 08:11:12 2023 +0000

    fix log panic
  • Loading branch information
cvvz committed Aug 25, 2023
1 parent 3465228 commit e73a687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions pkg/blobfuse-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ import (
csicommon "sigs.k8s.io/blob-csi-driver/pkg/csi-common"
)

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

var (
blobfuseProxyEndpoint = flag.String("blobfuse-proxy-endpoint", "unix://tmp/blobfuse-proxy.sock", "blobfuse-proxy endpoint")
)

func main() {
klog.InitFlags(nil)
_ = flag.Set("logtostderr", "true")
flag.Parse()
proto, addr, err := csicommon.ParseEndpoint(*blobfuseProxyEndpoint)
if err != nil {
Expand Down
5 changes: 1 addition & 4 deletions pkg/blobplugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ import (
"k8s.io/klog/v2"
)

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

var (
endpoint = flag.String("endpoint", "unix://tmp/csi.sock", "CSI endpoint")
blobfuseProxyEndpoint = flag.String("blobfuse-proxy-endpoint", "unix://tmp/blobfuse-proxy.sock", "blobfuse-proxy endpoint")
Expand Down Expand Up @@ -62,6 +58,7 @@ var (

func main() {
klog.InitFlags(nil)
_ = flag.Set("logtostderr", "true")
flag.Parse()
if *version {
info, err := blob.GetVersionYAML(*driverName)
Expand Down

0 comments on commit e73a687

Please sign in to comment.