Skip to content

Commit d01d9be

Browse files
authored
fix aws registry env vars (#515)
1 parent c478cd2 commit d01d9be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/registry.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,13 +444,14 @@ func (r *DPAReconciler) getAWSRegistryEnvVars(bsl *velerov1.BackupStorageLocatio
444444
awsEnvVars[i].Value = AWSSecretKey
445445
}
446446

447-
if awsEnvVars[i].Name == RegistryStorageS3RegionendpointEnvVarKey && bsl.Spec.Config[S3URL] != "" {
447+
if awsEnvVars[i].Name == RegistryStorageS3RegionendpointEnvVarKey {
448448
awsEnvVars[i].Value = bsl.Spec.Config[S3URL]
449449
}
450450

451-
if awsEnvVars[i].Name == RegistryStorageS3SkipverifyEnvVarKey && bsl.Spec.Config[InsecureSkipTLSVerify] != "" {
451+
if awsEnvVars[i].Name == RegistryStorageS3SkipverifyEnvVarKey {
452452
awsEnvVars[i].Value = bsl.Spec.Config[InsecureSkipTLSVerify]
453453
}
454+
454455
}
455456
return awsEnvVars, nil
456457
}

0 commit comments

Comments
 (0)