mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-11-03 01:53:38 +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
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
if namespaceConfig.ArtifactRepository.S3 != nil {
|
||||||
case namespaceConfig.ArtifactRepository.S3 != nil:
|
|
||||||
return namespaceConfig.ArtifactRepository.S3.Bucket, nil
|
return namespaceConfig.ArtifactRepository.S3.Bucket, nil
|
||||||
case namespaceConfig.ArtifactRepository.GCS != nil:
|
|
||||||
return namespaceConfig.ArtifactRepository.GCS.Bucket, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", fmt.Errorf("unknown artifact repository")
|
return "", fmt.Errorf("unknown artifact repository")
|
||||||
|
|||||||
Reference in New Issue
Block a user