diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 87e82583fc..c4fc01a341 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,5 +46,5 @@ repos: entry: make test language: system stages: [ pre-push ] -exclude: '^vendor/|^hack/tools/vendor/|^api/vendor/' +exclude: '^vendor/|^hack/tools/vendor/|^api/vendor/|^cmd/cluster/' fail_fast: true \ No newline at end of file diff --git a/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_minimal_flags_necessary_to_render.yaml b/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_minimal_flags_necessary_to_render.yaml index 0d3ce9008b..17e5d1634c 100644 --- a/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_minimal_flags_necessary_to_render.yaml +++ b/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_minimal_flags_necessary_to_render.yaml @@ -160,6 +160,7 @@ spec: type: ImageID machineIdentityID: fakeMachineIdentityID osDisk: + diskStorageAccountType: Premium_LRS sizeGiB: 120 subnetID: fakeSubnetID vmSize: Standard_D4s_v3 diff --git a/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_with_availability_ones.yaml b/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_with_availability_ones.yaml index 686a0fbc9a..fe8bb4332c 100644 --- a/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_with_availability_ones.yaml +++ b/cmd/cluster/azure/testdata/zz_fixture_TestCreateCluster_with_availability_ones.yaml @@ -193,6 +193,7 @@ spec: type: ImageID machineIdentityID: fakeMachineIdentityID osDisk: + diskStorageAccountType: Premium_LRS sizeGiB: 120 subnetID: fakeSubnetID vmSize: Standard_D4s_v3 diff --git a/cmd/nodepool/azure/create.go b/cmd/nodepool/azure/create.go index c858e76c1c..eac66d3f35 100644 --- a/cmd/nodepool/azure/create.go +++ b/cmd/nodepool/azure/create.go @@ -47,7 +47,8 @@ type RawAzurePlatformCreateOptions struct { func DefaultOptions() *RawAzurePlatformCreateOptions { return &RawAzurePlatformCreateOptions{ AzurePlatformCreateOptions: &AzurePlatformCreateOptions{ - DiskSize: 120, + DiskSize: 120, + DiskStorageAccountType: string(hyperv1.DiskStorageAccountTypesPremiumLRS), }, AzureMarketPlaceImageInfo: &AzureMarketPlaceImageInfo{}, }