-
Notifications
You must be signed in to change notification settings - Fork 27
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
Upgrade to latest Azure Go SDK #105
Conversation
…letes of disks and nics
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.
9th set of review done
Pls also update the following:
- update go version in Dockerfile
- MCM_VERSION -> v0.50.1
{"should forbid empty subnetName and vnetName", | ||
"", "", 2, | ||
ConsistOf( | ||
PointTo(MatchFields(IgnoreExtras, Fields{"Type": Equal(field.ErrorTypeRequired), "Field": Equal("providerSpec.subnetInfo.vnetName")})), | ||
PointTo(MatchFields(IgnoreExtras, Fields{"Type": Equal(field.ErrorTypeRequired), "Field": Equal("providerSpec.subnetInfo.subnetName")})), | ||
), | ||
}, |
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.
the one with description should forbid empty subnetName and vnetName
. because you are already checking them individually before, so why both now?
pkg/azure/provider/provider_test.go
Outdated
g.Expect(err).ToNot(BeNil()) | ||
var statusErr *status.Status | ||
g.Expect(errors.As(err, &statusErr)).Should(BeTrue()) | ||
g.Expect(statusErr.Code()).To(Equal(codes.InvalidArgument)) |
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.
We only wanted a validation for errorMessage, but if you feel its not correct, then its fine. We think the earlier way of validation was much simpler and easy to understand. Could you pls revert.
NewTokenCredetial from fake package upstream
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.
/lgtm
Thanks for the clean PR , it was pleasant reviewing it :)
/lgtm |
What this PR does / why we need it:
Azure SDK go-autorest is now out of support. This PR revamps the codebase and uses the latest SDK.
Which issue(s) this PR fixes:
Fixes #91, #41
Special notes for your reviewer:
Release note: