-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LFS support to be stored on minio #12518
Conversation
be7ea1f
to
11775dd
Compare
Codecov Report
@@ Coverage Diff @@
## master #12518 +/- ##
==========================================
- Coverage 43.30% 43.26% -0.04%
==========================================
Files 647 648 +1
Lines 71800 71886 +86
==========================================
+ Hits 31090 31099 +9
- Misses 35675 35745 +70
- Partials 5035 5042 +7
Continue to review full report at Codecov.
|
case "local": | ||
LFS, err = NewLocalStorage(setting.LFS.ContentPath) | ||
case "minio": | ||
minio := setting.LFS.Minio | ||
LFS, err = NewMinioStorage( | ||
context.Background(), | ||
minio.Endpoint, | ||
minio.AccessKeyID, | ||
minio.SecretAccessKey, | ||
minio.Bucket, | ||
minio.Location, | ||
minio.BasePath, | ||
minio.UseSSL, | ||
) | ||
default: | ||
return fmt.Errorf("Unsupported LFS store type: %s", setting.LFS.StoreType) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there really no way to make these self-register?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. But the current codes look clear and simple.
d9d237c
to
8e5d574
Compare
Do we really need duplicate minio configuration for each type of data stored in it? Should different buckets would not be enaugh |
@lafriks some users may wish to use cheaper s3 providers for avatars, and then more robust s3 provider for LFS |
@lafriks I will send another PR to add a |
hmm... I'm wondering if we'd be better off calving off the storage options into: [storage] ; this is the default storage option
TYPE=local
PATH=/data ; specific storage will inherit from this as a subpath
[storage.attachments]
TYPE=local; minio or the like
; PATH would default to [storage] PATH/attachments
... ; specific storage content config
[storage.lfs]
TYPE=local; minio or the like
... ; specific storage content config
... Then we can move the specific configuration to the storage module and do something like queues configuration stuff. |
@zeripath Yes, that's my next PR. But I will only add |
8e5d574
to
b6580de
Compare
As a next step of #11387, Fix #5530