Skip to content

Commit 9b0e7e8

Browse files
committed
cmd/remote-session: add --no-{owner,group} to rsync call
It's meaningless to try to retain ownership information between the builder and the orchestrator pod. We don't really care about that stuff, so tell `rsync` as much to avoid a bunch of `chown` warnings.
1 parent 0e8b784 commit 9b0e7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/remote-session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func runSync(c *cobra.Command, args []string) error {
227227
return fmt.Errorf("Must pass in a single arg with `:` prepended")
228228
}
229229
// build command and execute
230-
rsyncargs := []string{"-ah", "--mkpath", "--blocking-io",
230+
rsyncargs := []string{"-ah", "--no-owner", "--no-group", "--mkpath", "--blocking-io",
231231
"--compress", "--rsh", "podman --remote exec -i"}
232232
if !remoteSessionOpts.SyncQuiet {
233233
rsyncargs = append(rsyncargs, "-v")

0 commit comments

Comments
 (0)