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
closes #2224 re-vendor the latest Azure Storage SDK for better performance #2247
Conversation
…rmance Signed-off-by: Yu Wang <yuwa@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## master #2247 +/- ##
===========================================
- Coverage 61.61% 51.53% -10.08%
===========================================
Files 125 125
Lines 11395 11398 +3
===========================================
- Hits 7021 5874 -1147
- Misses 3489 4779 +1290
+ Partials 885 745 -140
Continue to review full report at Codecov.
|
@stevvooe Could you please take a look? It's just re-vendor latest Azure GO SDK. Thanks! |
@@ -86,7 +86,8 @@ func New(accountName, accountKey, container, realm string) (*Driver, error) { | |||
blobClient := api.GetBlobService() | |||
|
|||
// Create registry container | |||
if _, err = blobClient.CreateContainerIfNotExists(container, azure.ContainerAccessTypePrivate); err != nil { |
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.
Why was this azure.ContainerAccessTypePrivate
used before and no longer used? Is it deprecated now, is it the default, or was it just not needed.
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.
It's the default. The header is optional when create container; without the header set, the container will be private. The new SDK doesn't provide the option to set the header. To change the permission, need to call Container.SetPermissions.
Looks like we currently don't have an Azure configuration for testing on our CI. @dmp42 if we have an account somewhere to use I will update our CI |
LGTM |
@stevvooe @dmcgowan @dmp42 Since it's not related to this re-vendor change, could you please help to merge? _FAIL: /home/azureuser/oss/docker/src/github.com/docker/distribution/registry/storage/driver/testsuites/testsuites.go:852: DriverSuite.TestConcurrentStreamReads /home/azureuser/oss/docker/src/github.com/docker/distribution/registry/storage/driver/testsuites/testsuites.go:866: OOPS: 33 passed, 1 FAILED |
closes #2224 re-vendor the latest Azure Storage SDK for better performance
Signed-off-by: Yu Wang yuwa@microsoft.com