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

kubernetes-sigs / blob-csi-driver / 15712668695

17 Jun 2025 04:18PM UTC coverage: 80.404%. Remained the same
15712668695

Pull #2044

github

web-flow
chore(deps): bump github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus

Bumps [github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus](https://github.com/grpc-ecosystem/go-grpc-middleware) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/grpc-ecosystem/go-grpc-middleware/releases)
- [Commits](https://github.com/grpc-ecosystem/go-grpc-middleware/compare/providers/prometheus/v1.0.1...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #2044: chore(deps): bump github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus from 1.0.1 to 1.1.0

2429 of 3021 relevant lines covered (80.4%)

8.07 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