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
IR-91: Support Azure CloudName #578
Conversation
/assign @ricardomaraschini |
/retest |
/retest |
/retest |
@@ -4,11 +4,12 @@ go 1.13 | |||
|
|||
require ( | |||
cloud.google.com/go v0.40.0 | |||
github.com/Azure/azure-pipeline-go v0.2.2 // indirect |
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.
Could we have this squashed into previous commit (vendor)?
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.
commits are reordered, go.mod is a part of the first commit
pkg/storage/azure/azure.go
Outdated
@@ -235,34 +249,69 @@ type driver struct { | |||
Config *imageregistryv1.ImageRegistryConfigStorageAzure | |||
KubeConfig *rest.Config |
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 this "KubeConfig" still in use?
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.
no, removed
|
||
authorizer autorest.Authorizer | ||
sender autorest.Sender | ||
httpSender pipeline.Factory |
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.
Could you add a comment here indicating that these three are used solely for tests?
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.
added
pkg/storage/azure/azure.go
Outdated
@@ -302,36 +361,17 @@ func (d *driver) VolumeSecrets() (map[string]string, error) { | |||
} | |||
|
|||
// containerExists determines whether or not an azure container exists | |||
func (d *driver) containerExists(containerName string) (bool, error) { | |||
if d.Config.AccountName == "" || d.Config.Container == "" { | |||
func containerExists(ctx context.Context, environment autorestazure.Environment, accountName string, key string, containerName string) (bool, error) { |
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.
accountName, key, containerName string
@@ -0,0 +1,191 @@ | |||
|
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.
Could we have this squashed into previous commit (vendor)?
@@ -24,6 +24,8 @@ github.com/Azure/go-autorest/autorest/azure/auth | |||
github.com/Azure/go-autorest/autorest/azure/cli | |||
# github.com/Azure/go-autorest/autorest/date v0.2.0 | |||
github.com/Azure/go-autorest/autorest/date | |||
# github.com/Azure/go-autorest/autorest/mocks v0.3.0 |
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.
Could we have this squashed into previous commit (vendor)?
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 part of the vendor commit
sender.AppendResponse(mocks.NewResponseWithContent(`?`)) | ||
sender.AppendResponse(mocks.NewResponseWithContent(`{"name":"account"}`)) | ||
sender.AppendResponse(mocks.NewResponseWithContent(`{"keys":[{"value":"firstKey"}]}`)) | ||
sender.AppendResponse(mocks.NewResponseWithContent(`{"keys":[{"value":"firstKey"}]}`)) |
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.
Can't we use AppendAndRepeatResponse
here?
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.
No, we should eliminate the second call and I'd like to have the second call recorded explicitly
cc305ed
to
3026ec1
Compare
@ricardomaraschini comments are addressed |
AWS is not affected by this PR. |
Possible values: * AzurePublicCloud * AzureUSGovernmentCloud * AzureChinaCloud * AzureGermanCloud When the storage is not configured, the value is obtained from the Infrastructure object.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dmage, ricardomaraschini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
/hold cancel |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
No description provided.