-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add azure cloud provider #454
Conversation
@andyzhangx Any ideas of setting up the test on Azure before VMSS is ready? |
return provider | ||
} | ||
|
||
func TestBuildAwsCloudProvider(t *testing.T) { |
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.
Azure, not Aws
} | ||
|
||
func TestIncreaseSize(t *testing.T) { | ||
|
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.
remove empty line
scaleSetCache: make(map[AzureRef]*ScaleSet), | ||
} | ||
|
||
//(resourceGroupName string, vmScaleSetName string, |
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.
remove comments
|
||
func (client *VirtualMachineScaleSetsClientMock) Get(resourceGroupName string, | ||
vmScaleSetName string) (result compute.VirtualMachineScaleSet, err error) { | ||
fmt.Printf("Called VirtualMachineScaleSetsClientMock.Get(%s,%s)\n", resourceGroupName, vmScaleSetName) |
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.
fmt.Printf ?
Cool, thank you for this contribution! |
We will also need some documentation explaining how to setup CA on Azure, as a part of this PR. |
@mwielgus yep, I'm validating this on Azure now. |
This is because instance.ID is in different in different API calls (e.g. GET and LIST).
Validated scaling up and down on Azure VMSS (with kubernetes/kubernetes#55833), both work as expected now. @brendandburns @mwielgus @andyzhangx Ready for review now. PTAL. |
ping @MaciekPytel @mwielgus Could you take a look the PR? |
/lgtm @feiskyer, @andyzhangx I assume that you will be the main contacts for all Azure-related issues and PRs. Neither me nor @MaciekPytel, @aleksandra-malinowska or @bskiba have capacity/capabilities to do Azure-specific reviews, debugging or testing. |
@mwielgus Thanks. Yep, we will be in charge of all Azure related changes. |
Refactor: split out flavor assigment logic
This is the first step of adding Azure cloud provider back (#449 and kubernetes/kubernetes#47511). Mainly changes includes:
Note: Kubernetes Azure cloud provider VMSS support is not finished yet, so this work is tested togather with kubernetes/kubernetes#55833.
And there are more work to do to enable fully azure support, which is tracking at #449.
Closes: #133