Skip to content
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

Expand developer docs #54

Merged
merged 1 commit into from
Dec 13, 2016
Merged

Conversation

bprashanth
Copy link
Contributor

Following these instructions the nginx controller doesn't run on local-up-cluster, maybe I'm missing something obvious? plan to debug soon (it looks like it just hangs and doesn't start nginx), but I suppose we can iterate, since the doc captures intent.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 13, 2016
@k8s-reviewable
Copy link

This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.753% when pulling a3ad31b on bprashanth:devel_docs into 6262aa8 on kubernetes:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.753% when pulling a3ad31b on bprashanth:devel_docs into 6262aa8 on kubernetes:master.


Build a local container image
```console
$ make container
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PREFIX= and TAG= needs to be set here too.


Push the container image to a remote repository
```console
$ make push TAG=0.0 PREFIX=$USER/ingress-controller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's TAG= in the current makefiles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll have to udpate existing Makefiles for consistency, then update this doc with whiever convention we pick. Planning to do that in an iteration.

$ go build -o godep *.go
```

If you have an older version of `go`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo we should just assume the dev is using a new enough version of go and not provide instructions for older versions.

$ GO15VENDOREXPERIMENT=1 godep save ./...
```

To update a particular dependency, eg: Kubernetes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These instructions are probably a little better: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/godep.md#using-godep .. maybe we should link to em

At the very least, it's helpful to call out that a separate gopath is useful and that sometimes it's easiest to blow away both Godeps and vendor.

Also, rather than go get -u, it's often helpful to checkout a specific tag for a dependency, but I'm not sure it's worth calling that one out.

@@ -3,7 +3,7 @@ all: push
BUILDTAGS=

# 0.0 shouldn't clobber any release builds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment out of date now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's saying if you want to push some test build to gcr to eg: test your write access, use 0.0. I suppose I can actually say that.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.753% when pulling 939cb9c on bprashanth:devel_docs into 6262aa8 on kubernetes:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 39.775% when pulling 939cb9c on bprashanth:devel_docs into 6262aa8 on kubernetes:master.

@aledbf
Copy link
Member

aledbf commented Dec 13, 2016

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2016
@aledbf
Copy link
Member

aledbf commented Dec 13, 2016

Following these instructions the nginx controller doesn't run on local-up-cluster, maybe I'm missing something obvious?

can you post the error/log?

@bprashanth
Copy link
Contributor Author

I think I just had nginx running locally listening on the same ports. Maybe we can probe for 80/443 (lsof -i?) and throw an event? the controller was just dying mysteriously.

@bprashanth bprashanth merged commit 0af8ccc into kubernetes:master Dec 13, 2016
@bprashanth
Copy link
Contributor Author

#56

haoqing0110 referenced this pull request in stolostron/management-ingress Mar 5, 2021
Co-authored-by: clyang82 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants