• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / blob-csi-driver / 14315335951

07 Apr 2025 05:14PM UTC coverage: 78.258%. Remained the same
14315335951

Pull #1931

github

web-flow
chore(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0

Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sync/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1931: chore(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0

2336 of 2985 relevant lines covered (78.26%)

7.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.22
/pkg/blobfuse-proxy/main.go
1
/*
2
Copyright 2021 The Kubernetes Authors.
3

4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7

8
    http://www.apache.org/licenses/LICENSE-2.0
9

10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16

17
package main
18

19
import (
20
        "flag"
21
        "net"
22
        "os"
23

24
        "k8s.io/klog/v2"
25

26
        "sigs.k8s.io/blob-csi-driver/pkg/blobfuse-proxy/server"
27
        csicommon "sigs.k8s.io/blob-csi-driver/pkg/csi-common"
28
)
29

30
var (
31
        blobfuseProxyEndpoint = flag.String("blobfuse-proxy-endpoint", "unix://tmp/blobfuse-proxy.sock", "blobfuse-proxy endpoint")
32
        grpcServerRunner      = server.RunGRPCServer
33
)
34

35
func main() {
1✔
36
        klog.InitFlags(nil)
1✔
37
        _ = flag.Set("logtostderr", "true")
1✔
38
        flag.Parse()
1✔
39
        proto, addr, err := csicommon.ParseEndpoint(*blobfuseProxyEndpoint)
1✔
40
        if err != nil {
1✔
41
                klog.Fatalf("failed to  parse endpoint %v", err.Error())
×
42
        }
×
43

44
        if proto == "unix" {
2✔
45
                addr = "/" + addr
1✔
46
                if err := os.Remove(addr); err != nil && !os.IsNotExist(err) {
1✔
47
                        klog.Fatalf("Failed to remove %s, error: %s", addr, err.Error())
×
48
                }
×
49
        }
50

51
        listener, err := net.Listen(proto, addr)
1✔
52
        if err != nil {
1✔
53
                klog.Fatal("cannot start server:", err)
×
54
        }
×
55

56
        mountServer := server.NewMountServiceServer()
1✔
57

1✔
58
        klog.V(2).Infof("Listening for connections on address: %v\n", listener.Addr())
1✔
59
        if err = grpcServerRunner(mountServer, false, listener); err != nil {
1✔
60
                klog.Fatalf("Error running grpc server %v. Error: %v", listener.Addr(), err)
×
61
        }
×
62
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc