Skip to content

Commit 9252626

Browse files
andfasanoopenshift-cherrypick-robot
authored andcommitted
avoid transfering permissions when copying artifacts from node-joiner pod
1 parent 8f1c8b5 commit 9252626

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/cli/admin/nodeimage/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ func (o *CreateOptions) copyArtifactsFromNodeJoinerPod() error {
378378
Quiet: true,
379379
RsyncInclude: []string{"*.iso"},
380380
RsyncExclude: []string{"*"},
381+
RsyncNoPerms: true,
381382
}
382383
if o.GeneratePXEFiles {
383384
rsyncOptions.Source.Path = "/assets/boot-artifacts/"

pkg/cli/admin/nodeimage/create_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ func TestRun(t *testing.T) {
309309
if fakeCp.options.Destination.Path != tc.assetsDir {
310310
t.Errorf("expected %v, actual %v", fakeCp.options.Destination.Path, tc.assetsDir)
311311
}
312+
if fakeCp.options.RsyncNoPerms == false {
313+
t.Errorf("RsyncNoPerms is disabled")
314+
}
312315
}
313316

314317
for _, ext := range tc.expectedRsyncInclude {

0 commit comments

Comments
 (0)