Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions internal/controller/velero.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,14 @@ func (r *DataProtectionApplicationReconciler) customizeVeleroContainer(veleroCon
if err != nil {
return err
}
// Re-add uploader-type since GetArgs() doesn't include it
// but it comes from NodeAgent configuration, not Velero.Args
if dpa.Spec.Configuration.NodeAgent != nil &&
len(dpa.Spec.Configuration.NodeAgent.UploaderType) > 0 {
uploaderType := dpa.Spec.Configuration.NodeAgent.UploaderType
veleroContainer.Args = append(veleroContainer.Args,
fmt.Sprintf("--uploader-type=%s", uploaderType))
}
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/velero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2350,11 +2350,11 @@ func TestDPAReconciler_buildVeleroDeployment(t *testing.T) {
veleroDeployment: testVeleroDeployment.DeepCopy(),
wantVeleroDeployment: createTestBuiltVeleroDeployment(TestBuiltVeleroDeploymentOptions{
args: []string{
// should be present... "--uploader-type=kopia",
"--client-burst=321",
"--client-qps=321",
"--fs-backup-timeout=4h0m0s",
defaultRestoreResourcePriorities,
"--uploader-type=kopia",
defaultDisableInformerCache,
},
}),
Expand Down