GithubHelp home page GithubHelp logo

csi-lib-iscsi's Introduction

csi lib-iscsi

A simple go package intended to assist CSI plugin authors by providing a tool set to manage iscsi connections.

Goals

Provide a basic, lightweight library for CSI Plugin Authors to leverage some of the common tasks like connecting and disconnecting iscsi devices to a node. This library includes a high level abstraction for iscsi that exposes simple Connect and Disconnect functions. These are built on top of exported iscsiadm calls, so if you need more control you can access the iscsiadm calls directly.

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.

Logging and Debug

By default the library does not provide any logging, but provides an error message that includes any messages from iscsiadm as well as exit-codes. In the event that you need to debug the library, we provide a function:

func EnableDebugLogging(writer io.Writer)

This will turn on verbose logging directed to the provided io.Writer and include the response of every iscsiadm command issued.

Intended Usage

Curently the intended usage of this library is simply to provide a golang package to standardize how plugins are implementing iscsi connect and disconnect. It's not intended to be a "service", although that's a possible next step. It's currenty been used for plugins where iscsid is installed in containers only, as well as designs where it uses the nodes iscsid. Each of these approaches has their own pros and cons. Currently, it's up to the plugin author to determine which model suits them best and to deploy their node plugin appropriately.

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-iscsi's People

Contributors

j-griffith avatar jsafrane avatar k8s-ci-robot avatar mattsmithdatera avatar spiffxp avatar

Watchers

 avatar  avatar

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.