mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #34553 from jbeda/rsync-delete
Automatic merge from submit-queue Add --delete flag when rsyncing into container. If you delete a source file, we want to reflect that in the build container. We only use --delete going that one way as we don't want to accidentally delete files in the user's source tree.
This commit is contained in:
commit
9c5cb27f53
@ -669,6 +669,7 @@ function kube::build::sync_to_container() {
|
||||
V=6 kube::log::status "Running rsync"
|
||||
rsync ${rsync_extra} \
|
||||
--archive \
|
||||
--delete \
|
||||
--prune-empty-dirs \
|
||||
--password-file="${LOCAL_OUTPUT_BUILD_CONTEXT}/rsyncd.password" \
|
||||
--filter='- /.git/' \
|
||||
|
Loading…
Reference in New Issue
Block a user