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

docs: fix the building part in CONTRIBUTING.md #768

Merged
merged 4 commits into from
Jul 15, 2020
Merged

docs: fix the building part in CONTRIBUTING.md #768

merged 4 commits into from
Jul 15, 2020

Conversation

yuchunyu97
Copy link
Contributor

As per commit.

@yuchunyu97 yuchunyu97 requested review from hbagdi and rainest as code owners July 9, 2020 07:05
CONTRIBUTING.md Outdated
in your Deployment specs.

### Push the container image to a remote repository

```console
$ TAG=DEV REGISTRY=$USER/kong-ingress-controller make docker-push
```
in your Deployment specs.`
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't look like this is set up to allow suggestions, but I think we should leave in some sort of repo push instructions even if they're not a Makefile target. The container build does still make use of those environment variables when constructing the image name and we should provide basic guidance on pushes.

Something along the lines of:

in your Deployment specs.

### Build and push the container image to a remote repository

export REGISTRY=docker.example.com/registry; export TAG=0.10.0-my-custom-build; make container; docker push $REGISTRY/kong-ingress-controller:$TAG

Note also that there's an extra backtick character at the end of "specs.`" in the current diff that probably wasn't intended/should be removed.

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 have deleted the extra characters.

I think that providing non-existent push instructions may confuse users, so before there is no corresponding push instruction in the Makefile, remove the relevant help from the documentation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Having consulted with my colleagues, we respectively disagree here. There's no push in the Makefile because it's not something it needs to automate or can reliably automate well, but it is a task we expect most users will need to perform, and omitting it would result in confusion of its own. Please do re-add that section.

If including the fake example seems confusing, please feel free to add an explanatory "replace docker.example.com/registry with your registry URL" note after, that's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I modified some commands and added some tips.

@yuchunyu97 yuchunyu97 requested a review from rainest July 14, 2020 02:07
@hbagdi hbagdi merged commit 07e7652 into Kong:master Jul 15, 2020
@yuchunyu97 yuchunyu97 deleted the docs/contributing branch July 16, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants