-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add configuration option for sync inference [3/3] #2088
Add configuration option for sync inference [3/3] #2088
Conversation
Codecov Report
|
1ec92d2
to
99916c5
Compare
Please visit http://35.236.44.79:1313 to view changes to the docs. |
99916c5
to
a2afe7a
Compare
605d047
to
bd173e0
Compare
bd173e0
to
fe719ad
Compare
80318d3
to
7f11844
Compare
@corneliusweig What's the status on this PR? Is it good to be reviewed or are you still working on it? I'm happy to review |
@dgageot it is ready. Thanks for taking a look! |
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 with just a few nits. It would be better if someone else could review too
@@ -15,6 +15,37 @@ The file copying is enabled by adding a `sync` section with _sync rules_ to the | |||
Under the hood, Skaffold creates a tar file with changed files that match the sync rules. | |||
This tar file is sent to and extracted on the corresponding containers. | |||
|
|||
### Inferred sync mode | |||
For docker artifacts, Skaffold knows to infer the desired destination from the artifact's `Dockerfile`. |
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.
knows
-> knows how
?
@tejal29 As you were the design shepherd: could you also review? Or find somebody to do that? Would be highly appreciated, as this PR has been ready for quite some time now. |
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.
a few tiny nits but otherwise LGTM
5924e40
to
ebabc8c
Compare
@nkubala addressed your comments and rebased on master (there were conflicts) |
@corneliusweig looks good except I think there's an issue with the config file getting passed to |
ebabc8c
to
0875984
Compare
@nkubala you are right. That config needed to be adapted. Now let's wait for travis. |
@nkubala CI is still failing. I now recall to also have refactored this test, because it had a loophole. I need to do the necessary adjustments tomorrow. |
4a4495c
to
ab8fa04
Compare
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
- add new configuration sync.Infer - create sync Item for builds with inferred sync map - add test cases for inferred sync map Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Before, it was possible that the test would pass even though no sync had happened. Now the test can only pass, if the file is synced into the container. Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
Signed-off-by: Cornelius Weig <[email protected]>
ab8fa04
to
b32baac
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@nkubala Ok, CI is finally green again. There were some hickups. |
@corneliusweig awesome, thank you for pushing this through! |
The sync feature is getting refurbished, see design proposal #1844 .
This PR implements step 3 of the implementation plan for the sync improvements. Notable changes include:
sync.infer []string
to enable sync for some filesbased-on #2084
Supersedes #1812
Fixes #1166, #1581
Related #1180, #1807
CC design shepherd @tejal29