-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add document to help getting started with development #67
Add document to help getting started with development #67
Conversation
/assign @dims |
docs/getting-started-provider-dev.md
Outdated
cd ~ | ||
git clond https://github.com/kubernetes/kubernetes | ||
cd kubernetes | ||
make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it really work with make? I am using ./build/run.sh make && cd cluster/images/hyperkube && make push VERSION=dev ARCH=amd64
docs/getting-started-provider-dev.md
Outdated
|
||
``` | ||
cd ~ | ||
git clone https://github.com/kubnernetes/cloud-provider-openstack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when compiling golang, the directory structure is important. For me this does not look like its correct if you just clone it to current default directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.
You need to export GOPATH
as well and use k8s.io
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plus there is typo kubnernetes
@@ -0,0 +1,199 @@ | |||
# Getting Started with Cloud Provider OpenStack Development | |||
|
|||
This guide will help you get started with building a development environment for you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about This guide will help you build and run a single node Kubernetes cluster with the OpenStack Cloud Provider enabled
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit of both. It's not just about running the code, but about having it available to develop and test against. We don't have any functional tests enabled, and this is part of the path towards getting those set up.
docs/getting-started-provider-dev.md
Outdated
|
||
The specific values you use will vary based on your particular environment. You may | ||
notice that several values are aliases of one another. This is in part because the | ||
values expected by the OpenStack client and [Gopher Cloud]() are slightly different, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing link for Gophercloud project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, definitely a missing link.
docs/getting-started-provider-dev.md
Outdated
|
||
``` | ||
cd ~ | ||
git clone https://github.com/kubnernetes/cloud-provider-openstack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.
You need to export GOPATH
as well and use k8s.io
instead.
b130eb5
to
6074b31
Compare
export GOPATH=$HOME/go | ||
export GOROOT=/usr/local/go | ||
export PATH=$PATH:$GOROOT/bin | ||
export user={your github profile name} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
USER right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah never mind, this is just for snippet below
export working_dir=$GOPATH/src/k8s.io | ||
``` | ||
|
||
With your environment variables set up, clone the forks into your go environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we tell them earlier to fork cloud-provider-openstack and kubernetes repos?
docs/getting-started-provider-dev.md
Outdated
cd $working_dir | ||
git clone https://github.com/{user}/kubernetes | ||
cd kubernetes | ||
make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this actually build? the following may work better to build-all-the-things
export KUBE_FASTBUILD=true
make cross
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://github.com/kubernetes/kubernetes/tree/master/build#key-scripts make
will build only the linux binaries.
AFAIK running make cross
with KUBE_FASTBUILD=true
on a linux platform should do the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to create env with this guide but nothing happens when i run 'make', i need to run 'make build' then binaries are build.
docs/getting-started-provider-dev.md
Outdated
domain-id=<domain_id> | ||
``` | ||
|
||
Start your cluster with the `hack/local-up.sh` with the proper environment variable set to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hack/local-up-cluster.sh
|
||
To run the OpenStack provider, integrated with your cloud, be sure to have sourced the | ||
environment variables. You will also need to create an `/etc/kubernetes/cloud-config` file | ||
with the minimum options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can throw the url for the configuration options here too https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#cloudconf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That document is going away, and we should be hosting it in this repository.
/hold |
/test cloud-provider-openstack-acceptance-test-e2e-conformance-stable-branch-v1.10 |
Build succeeded.
|
docs/getting-started-provider-dev.md
Outdated
``` | ||
GO_VERSION=1.10 | ||
GO_ARCH=linux-amd64 | ||
curl -o go.tgz https://dl.google.com/go/go$(GO_VERSION).$(GO_ARCH).tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line should be
curl -o go.tgz https://dl.google.com/go/go${GO_VERSION}.${GO_ARCH}.tar.gz
?
docs/getting-started-provider-dev.md
Outdated
enable the external cloud provider: | ||
|
||
``` | ||
export EXTERNAL_CLOUD_PROVIDER_BINARY=$GOPATH/src/git.openstack.org/openstack/openstack-cloud-controller-manager/openstack-cloud-controller-manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to set
export EXTERNAL_CLOUD_PROVIDER_BINARY=$GOPATH/src/k8s.io/cloud-provider-openstack/openstack-cloud-controller-manager
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Build succeeded.
|
8297540
to
db7d665
Compare
db7d665
to
f552975
Compare
Build succeeded.
|
/hold cancel |
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…der-dev Add document to help getting started with development
What this PR does / why we need it:
This PR outlines basic requirements for setting up a development environment for
cloud-provider-openstack
Which issue(s) this PR fixes:
Fixes #20
Special notes for your reviewer:
Advice on making this more widely usable, based on your own experiences, are welcome.
Release note: