Skip to content

Commit fa1fd95

Browse files
Merge pull request openshift#2032 from openshift-cherrypick-robot/cherry-pick-2031-to-release-4.19
[release-4.19] OCPBUGS-56905: avoid transfering permissions when copying artifacts from node-joiner pod
2 parents 8f1c8b5 + 9252626 commit fa1fd95

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)