-
Notifications
You must be signed in to change notification settings - Fork 408
Syncer docs: adds a guide on running the syncer locally and updates slightly outdated doc #1775
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
Syncer docs: adds a guide on running the syncer locally and updates slightly outdated doc #1775
Conversation
Hi @m1kola. Thanks for your PR. I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
* Updates instructions on how to enable a syncer on a physical cluster. * Updates development guide on how to build a syncer image and run syncer in a kind cluster with a local registry. * Adds a guide on how to run a syncer locally for development.
6b3dd84
to
e395ce2
Compare
Isn't this going to conflict with #1746 ? |
We should try to make this in sync with the Makefile parts of kcp-dev/controller-runtime-example#19 |
It did conflict. I incorporated changes from this PR here too - updated the snippets with
Could you elaborate please? I'm not sure what I need to do with regards to this. |
I wonder if there's some way to provide the simple(ish) |
@stevekuznetsov I think having development workflow automated is a good idea. I'm not sure if it is reasonable to automate user part of the doc: as an outsider one might want to know how to sync the clusters without having to read makefile. I'll be back to compute on the 7th of September. Happy to catch up on this topic after that date.
It is the nature of the docs :) |
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.
Content of the docs looks really good! Just two small comments.
|
||
You can run the syncer in a kind cluster for development. | ||
|
||
1. Create a `kind` cluster with a local registry to simplify syncer development |
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.
Do you need the registry for this? I was able to build the image locally and use kind load docker-image
to put it on the nodes, as long as you're not using a :latest
tag it should go straight to storage & not try to pull.
```sh | ||
$ kubectl wait --for=condition=Ready synctarget/<mycluster> | ||
``` | ||
1. Create an organisation and immediately enter it: |
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.
nit: this does not have to be an org
/ok-to-test |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts 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 |
/lgtm |
Summary