feat: fix for s3 cache from operator

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
Alex Jones
2023-06-15 13:17:43 +01:00
parent 1bc0f42f71
commit f6db6ce861
2 changed files with 2 additions and 7 deletions

4
pkg/cache/cache.go vendored
View File

@@ -48,9 +48,7 @@ func AddRemoteCache(bucketName string, region string) error {
if err != nil {
return err
}
if cacheInfo.BucketName != "" {
return errors.New("Error: a cache is already configured, please remove it first")
}
cacheInfo.BucketName = bucketName
cacheInfo.Region = region
viper.Set("cache", cacheInfo)