-
Notifications
You must be signed in to change notification settings - Fork 40
readme: added instructions for sync #538
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
Conversation
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.
Please check few comments.
README.md
Outdated
|
||
#### Running | ||
|
||
To run the sync tool, use the makefile target. |
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.
To run the sync tool, use the makefile target. | |
To run the sync tool, use the lib-sync makefile target. |
README.md
Outdated
|
||
### Sync Tool and Operator Types | ||
|
||
To switch to using just the runtime client and to remove dependencies on individual operators, the sync tool will periodically copy over types from operator repos to this repo. It works by cloning the operator repo, applying changes in the config file, then copying it into this repo. |
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.
So we clone the whole repo just for one file? Why not just get the single file
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.
@achuzhoy We do a sparse checkout but I'll update to mention that
README.md
Outdated
7. Since the operator may import other parts of the repo or other repos in the same organization, this will need to be replaced with imports from eco-goinfra once synced. | ||
8. Import replacement is done through find and replace, so we include the double quotes to make sure it is an import being matched. | ||
9. If the package name in eco-goinfra is different than the operator repo, the import should be renamed so the code still works. | ||
10. Excludes is a list of file patterns to exclude. Since tests and mocks may add their own dependencies, excluding them can keep the amount of code that needs synced much smaller |
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.
seems like "that needs synced much smaller" needs re-phrasing?
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.
/lgtm
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.
/lgtm
README.md
Outdated
4. Branch is the branch of the operator repo to sync with. | ||
5. Remote API directory is the path in the operator repo to sync with, relative to the operator repo root. | ||
6. Local API directory is the path in eco-goinfra where the remote API directory should be synced to. Relative to the eco-goinfra root, it should start with `schemes/`. | ||
7. Since the operator may import other parts of the repo or other repos in the same organization, these will need to be replaced with imports from eco-goinfra once synced. This field is optional. |
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.
Not clear what needs to be done exactly.
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.
@achuzhoy Which part is unclear? Like what the values should be for this field or when you need to provide them?
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.
" these will need to be replaced with imports from eco-goinfra once synced" replaced with what?
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.
@achuzhoy I've updated the PR to help clarify this
Rendered