mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-26 17:51:13 +08:00
chore: cleaned up repository logic since we use minio for non-s3 providers
This commit is contained in:
@@ -28,11 +28,8 @@ func getArtifactRepositoryBucket(client *v1.Client, namespace string) (string, e
|
||||
return "", err
|
||||
}
|
||||
|
||||
switch {
|
||||
case namespaceConfig.ArtifactRepository.S3 != nil:
|
||||
if namespaceConfig.ArtifactRepository.S3 != nil {
|
||||
return namespaceConfig.ArtifactRepository.S3.Bucket, nil
|
||||
case namespaceConfig.ArtifactRepository.GCS != nil:
|
||||
return namespaceConfig.ArtifactRepository.GCS.Bucket, nil
|
||||
}
|
||||
|
||||
return "", fmt.Errorf("unknown artifact repository")
|
||||
|
Reference in New Issue
Block a user