GithubHelp home page GithubHelp logo

richbrowne / cloud-provider-vsphere Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubernetes/cloud-provider-vsphere

0.0 2.0 0.0 802 KB

License: Apache License 2.0

Makefile 2.07% Dockerfile 0.41% Go 94.92% Shell 2.60%

cloud-provider-vsphere's Introduction

Cloud provider for vSphere

Cloud controller manager for vSphere

This repository provides tools and scripts for building and testing Kubernetes cloud-controller-manager for vSphere. The project is under development and should not be used in production.

The vSphere cloud provider code locates at Kubernetes repository directory. If you want to create issues or pull requests for cloud provider, please go to Kubernetes repository.

There is an ongoing work for refactoring cloud providers out of the upstream repository. For more details, please check this KEP.

Building the cloud provider

This section outlines how to build the cloud provider with and without Docker.

Building locally

Clone this repository to $GOPATH/src/k8s.io/cloud-provider-vsphere. Please note that this path is not the same as the project's location in GitHub. Failing to clone the repository to the prescribed path causes the Go dependency tool dep and builds to fail.

$ make

Building with Docker

It is also possible to build the cloud provider with Docker in order to ensure a clean build environment. When building with Docker this repository may be cloned anywhere in or out of the $GOPATH. For example, the following script clones and builds the cloud-provider using a temporary directory:

Note: Python is used to resolve the temporary directory's real path. This step is required on macOS due to Docker's restrictions on which directories can be shared with a container. The script has been tested on Linux as well.

$ cd $(python -c "import os; print(os.path.realpath('$(mktemp -d)'))") && \
  git clone https://github.com/kubernetes/cloud-provider-vsphere . && \
  hack/make.sh

The dep tool hangs

The dep tool may freeze when running locally and not via the hack/make.sh command that uses the Docker image. If this happens, please check the following:

  1. The repository must be cloned to $GOPATH/src/k8s.io/cloud-provider-vsphere. This is not the same path as the project's location in GitHub, but rather reflects the project's Go packages' vanity import path.
  2. The Mercurial client hg must be installed in order to fetch the dependency bitbucket.org/ww/goautoneg. Otherwise dep will hang indefinitely without any indication as to the reason.

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

NOTE

Currently this repository is used for building and testing cloud-controller-manager for vSphere, it references vSphere cloud provider implementation code as vendor dir. After handoff, the vSphere cloud provider implementation will be moved here.

cloud-provider-vsphere's People

Contributors

k8s-ci-robot avatar dvonthenen avatar akutz avatar dougm avatar abrarshivani avatar baludontu avatar codenrhoden avatar dagnello avatar divyenpatel avatar frapposelli avatar mikedanese avatar ixdy avatar mooncak avatar figo avatar jhorwit2 avatar xiangpengzhao avatar stewart-yu avatar prashima avatar dkalleg avatar deads2k avatar zetaab avatar sttts avatar adamdang avatar yupengzte avatar mikeweiwei avatar lojies avatar lixiaobing1 avatar hzxuzhonghu avatar calebamiles avatar wanlinghao avatar

Watchers

Rich Browne 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.