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

kubernetes-sigs / blob-csi-driver / 13246414366

10 Feb 2025 05:09PM UTC coverage: 77.861%. Remained the same
13246414366

Pull #1831

github

web-flow
chore(deps): bump golang.org/x/net from 0.34.0 to 0.35.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/net/compare/v0.34.0...v0.35.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1831: chore(deps): bump golang.org/x/net from 0.34.0 to 0.35.0

2286 of 2936 relevant lines covered (77.86%)

7.44 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