Giter Site home page Giter Site logo

kubernetes-retired / csi-lib-fc Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 10.0 16 KB

[EOL] A go package that can be imported to help CSI plugins with connecting to fibre channel devices

License: Apache License 2.0

Makefile 1.72% Go 98.28%
k8s-sig-storage

csi-lib-fc's Introduction

CSI lib-fc

A go package that can be imported to help CSI plugins with connecting to fibre channel devices. Simply import it and get access to the necessary functions

Goals

Provide a basic, lightweight library for CSI Plugin Authors to leverage some of the common tasks on a node like connecting and disconnecting fibre channel devices.

We intentionally avoid pulling in additional dependencies, and we intend to be stateless and as such are not using receivers. Currently the focus is strictly based on a CSI context.

Design Philosophy

The idea is to keep this as lightweight and generic as possible. We intentionally avoid the use of any third party libraries or packages in this project. We don't have a vendor directory, because we attempt to rely only on the std golang libs. This may prove to not be ideal, and may be changed over time, but initially it's a worthwhile goal.

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

csi-lib-fc's People

Contributors

jsafrane avatar k8s-ci-robot avatar pmorie avatar spiffxp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

csi-lib-fc's Issues

Broken Link of `contributor cheat sheet` need to fix

Bug Report

I have observed same kind of issue in various kubernetes-csi project.
this happens because after the localization there are too much modifications done in the various directories.
I have observed same issue in this page also.

It has one broken link of the contributes cheat sheet which needs to fix.
I will try to look in further csi repo as well and try to fix it as soon as I can

/kind bug
/assign

Condition not handled when `FindMultipathDeviceForDevice` returns nil error

No handling added when FindMultipathDeviceForDevice not returning any error : https://github.com/kubernetes-csi/csi-lib-fc/blob/fe8a7253a266e8fc6d39c8ada3df9cf89b381b9c/fibrechannel/fibrechannel.go#L211

if name == FcPath {
   disk, err := io.EvalSymlinks(DevID + name)
    if err != nil {
    glog.Errorf("fc: failed to find a corresponding disk from symlink[%s], error %v", DevID+name, err)
    return "", ""
    }
    if dm, err1 := FindMultipathDeviceForDevice(disk, io); err1 != nil {
    return disk, dm
    }
}

Expected fix:

dm, err1 := FindMultipathDeviceForDevice(disk, io)
    if err1 != nil {
    glog.Errorf("fc: failed to find a multipath disk for %s, error %v", disk, err)
    return disk, ""
}
return disk, dm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.