Skip to content

Conversation

klaskosk
Copy link
Collaborator

@klaskosk klaskosk commented Jul 26, 2024

Copy link
Collaborator

@kononovn kononovn left a 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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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.
Copy link
Collaborator

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

Copy link
Collaborator Author

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
Copy link
Collaborator

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?

kononovn
kononovn previously approved these changes Jul 29, 2024
Copy link
Collaborator

@kononovn kononovn left a comment

Choose a reason for hiding this comment

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

/lgtm

trewest
trewest previously approved these changes Jul 29, 2024
Copy link
Collaborator

@trewest trewest left a 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.
Copy link
Collaborator

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@kononovn kononovn merged commit 977808e into rh-ecosystem-edge:main Jul 31, 2024
2 checks passed
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.

4 participants