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

kubernetes-sigs / blob-csi-driver / 8988986786

07 May 2024 04:30PM UTC coverage: 74.454%. Remained the same
8988986786

Pull #1380

github

web-flow
chore(deps): bump golangci/golangci-lint-action from 5 to 6

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1380: chore(deps): bump golangci/golangci-lint-action from 5 to 6

2215 of 2975 relevant lines covered (74.45%)

7.21 hits per line

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

0.0
/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
)
33

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

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

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

55
        mountServer := server.NewMountServiceServer()
×
56

×
57
        klog.V(2).Infof("Listening for connections on address: %v\n", listener.Addr())
×
58
        if err = server.RunGRPCServer(mountServer, false, listener); err != nil {
×
59
                klog.Fatalf("Error running grpc server %v. Error: %v", listener.Addr(), err)
×
60
        }
×
61
}
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