Skip to content

Commit 79fb6bc

Browse files
committed
Update to Standard_D2s_v5 SKU for testing
1 parent 93f187e commit 79fb6bc

24 files changed

+122
-62
lines changed

api/v1beta1/azuremanagedmachinepooltemplate_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestManagedMachinePoolTemplateUpdateWebhook(t *testing.T) {
9999
{
100100
name: "azuremanagedmachinepooltemplate SKU is immutable",
101101
oldMachinePoolTemplate: getAzureManagedMachinePoolTemplate(func(ammpt *AzureManagedMachinePoolTemplate) {
102-
ammpt.Spec.Template.Spec.SKU = "Standard_D2s_v3"
102+
ammpt.Spec.Template.Spec.SKU = "Standard_D2s_v5"
103103
}),
104104
machinePoolTemplate: getAzureManagedMachinePoolTemplate(func(ammpt *AzureManagedMachinePoolTemplate) {
105105
ammpt.Spec.Template.Spec.SKU = "Standard_D4s_v3"

azure/converters/managedagentpool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Test_AgentPoolToManagedClusterAgentPoolProfile(t *testing.T) {
3737
pool: &asocontainerservicev1hub.ManagedClustersAgentPool{
3838
Spec: asocontainerservicev1hub.ManagedClustersAgentPool_Spec{
3939
AzureName: "agentpool1",
40-
VmSize: ptr.To("Standard_D2s_v3"),
40+
VmSize: ptr.To("Standard_D2s_v5"),
4141
OsType: ptr.To(string(asocontainerservicev1.OSType_Linux)),
4242
OsDiskSizeGB: ptr.To(100),
4343
Count: ptr.To(2),
@@ -68,7 +68,7 @@ func Test_AgentPoolToManagedClusterAgentPoolProfile(t *testing.T) {
6868
expect: func(g *GomegaWithT, result asocontainerservicev1hub.ManagedClusterAgentPoolProfile) {
6969
g.Expect(result).To(Equal(asocontainerservicev1hub.ManagedClusterAgentPoolProfile{
7070
Name: ptr.To("agentpool1"),
71-
VmSize: ptr.To("Standard_D2s_v3"),
71+
VmSize: ptr.To("Standard_D2s_v5"),
7272
OsType: ptr.To(string(asocontainerservicev1.OSType_Linux)),
7373
OsDiskSizeGB: ptr.To(100),
7474
Count: ptr.To(2),

azure/scope/managedcontrolplane_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func TestManagedControlPlaneScope_PoolVersion(t *testing.T) {
183183
&agentpools.AgentPoolSpec{
184184
Name: "pool0",
185185
AzureName: "pool0",
186-
SKU: "Standard_D2s_v3",
186+
SKU: "Standard_D2s_v5",
187187
Replicas: 1,
188188
Mode: "System",
189189
Cluster: "cluster1",
@@ -223,7 +223,7 @@ func TestManagedControlPlaneScope_PoolVersion(t *testing.T) {
223223
&agentpools.AgentPoolSpec{
224224
Name: "pool0",
225225
AzureName: "pool0",
226-
SKU: "Standard_D2s_v3",
226+
SKU: "Standard_D2s_v5",
227227
Mode: "System",
228228
Replicas: 1,
229229
Version: ptr.To("1.21.1"),
@@ -401,7 +401,7 @@ func TestManagedControlPlaneScope_OSType(t *testing.T) {
401401
&agentpools.AgentPoolSpec{
402402
Name: "pool0",
403403
AzureName: "pool0",
404-
SKU: "Standard_D2s_v3",
404+
SKU: "Standard_D2s_v5",
405405
Mode: "System",
406406
Replicas: 1,
407407
Cluster: "cluster1",
@@ -410,7 +410,7 @@ func TestManagedControlPlaneScope_OSType(t *testing.T) {
410410
&agentpools.AgentPoolSpec{
411411
Name: "pool1",
412412
AzureName: "pool1",
413-
SKU: "Standard_D2s_v3",
413+
SKU: "Standard_D2s_v5",
414414
Mode: "User",
415415
Replicas: 1,
416416
Cluster: "cluster1",
@@ -420,7 +420,7 @@ func TestManagedControlPlaneScope_OSType(t *testing.T) {
420420
&agentpools.AgentPoolSpec{
421421
Name: "pool2",
422422
AzureName: "pool2",
423-
SKU: "Standard_D2s_v3",
423+
SKU: "Standard_D2s_v5",
424424
Mode: "User",
425425
Replicas: 1,
426426
Cluster: "cluster1",

azure/scope/managedmachinepool_test.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestManagedMachinePoolScope_Autoscaling(t *testing.T) {
9898

9999
Name: "pool0",
100100
AzureName: "pool0",
101-
SKU: "Standard_D2s_v3",
101+
SKU: "Standard_D2s_v5",
102102
Replicas: 1,
103103
Mode: "System",
104104
Cluster: "cluster1",
@@ -125,7 +125,7 @@ func TestManagedMachinePoolScope_Autoscaling(t *testing.T) {
125125
Expected: &agentpools.AgentPoolSpec{
126126
Name: "pool1",
127127
AzureName: "pool1",
128-
SKU: "Standard_D2s_v3",
128+
SKU: "Standard_D2s_v5",
129129
Mode: "User",
130130
Cluster: "cluster1",
131131
Replicas: 1,
@@ -173,7 +173,7 @@ func TestManagedMachinePoolScope_NodeLabels(t *testing.T) {
173173
Expected: &agentpools.AgentPoolSpec{
174174
Name: "pool0",
175175
AzureName: "pool0",
176-
SKU: "Standard_D2s_v3",
176+
SKU: "Standard_D2s_v5",
177177
Replicas: 1,
178178
Mode: "System",
179179
Cluster: "cluster1",
@@ -202,7 +202,7 @@ func TestManagedMachinePoolScope_NodeLabels(t *testing.T) {
202202
Expected: &agentpools.AgentPoolSpec{
203203
Name: "pool1",
204204
AzureName: "pool1",
205-
SKU: "Standard_D2s_v3",
205+
SKU: "Standard_D2s_v5",
206206
Mode: "System",
207207
Cluster: "cluster1",
208208
Replicas: 1,
@@ -250,7 +250,7 @@ func TestManagedMachinePoolScope_AdditionalTags(t *testing.T) {
250250
Expected: &agentpools.AgentPoolSpec{
251251
Name: "pool0",
252252
AzureName: "pool0",
253-
SKU: "Standard_D2s_v3",
253+
SKU: "Standard_D2s_v5",
254254
Replicas: 1,
255255
Mode: "System",
256256
Cluster: "cluster1",
@@ -279,7 +279,7 @@ func TestManagedMachinePoolScope_AdditionalTags(t *testing.T) {
279279
Expected: &agentpools.AgentPoolSpec{
280280
Name: "pool1",
281281
AzureName: "pool1",
282-
SKU: "Standard_D2s_v3",
282+
SKU: "Standard_D2s_v5",
283283
Mode: "System",
284284
Cluster: "cluster1",
285285
Replicas: 1,
@@ -327,7 +327,7 @@ func TestManagedMachinePoolScope_MaxPods(t *testing.T) {
327327
Expected: &agentpools.AgentPoolSpec{
328328
Name: "pool0",
329329
AzureName: "pool0",
330-
SKU: "Standard_D2s_v3",
330+
SKU: "Standard_D2s_v5",
331331
Replicas: 1,
332332
Mode: "System",
333333
Cluster: "cluster1",
@@ -354,7 +354,7 @@ func TestManagedMachinePoolScope_MaxPods(t *testing.T) {
354354
Expected: &agentpools.AgentPoolSpec{
355355
Name: "pool1",
356356
AzureName: "pool1",
357-
SKU: "Standard_D2s_v3",
357+
SKU: "Standard_D2s_v5",
358358
Mode: "System",
359359
Cluster: "cluster1",
360360
Replicas: 1,
@@ -401,7 +401,7 @@ func TestManagedMachinePoolScope_Taints(t *testing.T) {
401401

402402
Name: "pool0",
403403
AzureName: "pool0",
404-
SKU: "Standard_D2s_v3",
404+
SKU: "Standard_D2s_v5",
405405
Replicas: 1,
406406
Mode: "System",
407407
Cluster: "cluster1",
@@ -434,7 +434,7 @@ func TestManagedMachinePoolScope_Taints(t *testing.T) {
434434
Expected: &agentpools.AgentPoolSpec{
435435
Name: "pool1",
436436
AzureName: "pool1",
437-
SKU: "Standard_D2s_v3",
437+
SKU: "Standard_D2s_v5",
438438
Mode: "User",
439439
Cluster: "cluster1",
440440
Replicas: 1,
@@ -480,7 +480,7 @@ func TestManagedMachinePoolScope_OSDiskType(t *testing.T) {
480480
Expected: &agentpools.AgentPoolSpec{
481481
Name: "pool0",
482482
AzureName: "pool0",
483-
SKU: "Standard_D2s_v3",
483+
SKU: "Standard_D2s_v5",
484484
Replicas: 1,
485485
Mode: "System",
486486
Cluster: "cluster1",
@@ -507,7 +507,7 @@ func TestManagedMachinePoolScope_OSDiskType(t *testing.T) {
507507
Expected: &agentpools.AgentPoolSpec{
508508
Name: "pool1",
509509
AzureName: "pool1",
510-
SKU: "Standard_D2s_v3",
510+
SKU: "Standard_D2s_v5",
511511
Mode: "User",
512512
Cluster: "cluster1",
513513
Replicas: 1,
@@ -553,7 +553,7 @@ func TestManagedMachinePoolScope_SubnetName(t *testing.T) {
553553
Expected: &agentpools.AgentPoolSpec{
554554
Name: "pool0",
555555
AzureName: "pool0",
556-
SKU: "Standard_D2s_v3",
556+
SKU: "Standard_D2s_v5",
557557
Replicas: 1,
558558
Mode: "System",
559559
Cluster: "cluster1",
@@ -589,7 +589,7 @@ func TestManagedMachinePoolScope_SubnetName(t *testing.T) {
589589
Expected: &agentpools.AgentPoolSpec{
590590
Name: "pool1",
591591
AzureName: "pool1",
592-
SKU: "Standard_D2s_v3",
592+
SKU: "Standard_D2s_v5",
593593
Mode: "User",
594594
Cluster: "cluster1",
595595
Replicas: 1,
@@ -625,7 +625,7 @@ func TestManagedMachinePoolScope_SubnetName(t *testing.T) {
625625
Expected: &agentpools.AgentPoolSpec{
626626
Name: "pool1",
627627
AzureName: "pool1",
628-
SKU: "Standard_D2s_v3",
628+
SKU: "Standard_D2s_v5",
629629
Mode: "User",
630630
Cluster: "cluster1",
631631
Replicas: 1,
@@ -671,7 +671,7 @@ func TestManagedMachinePoolScope_KubeletDiskType(t *testing.T) {
671671
Expected: &agentpools.AgentPoolSpec{
672672
Name: "pool0",
673673
AzureName: "pool0",
674-
SKU: "Standard_D2s_v3",
674+
SKU: "Standard_D2s_v5",
675675
Replicas: 1,
676676
Mode: "System",
677677
Cluster: "cluster1",
@@ -698,7 +698,7 @@ func TestManagedMachinePoolScope_KubeletDiskType(t *testing.T) {
698698
Expected: &agentpools.AgentPoolSpec{
699699
Name: "pool1",
700700
AzureName: "pool1",
701-
SKU: "Standard_D2s_v3",
701+
SKU: "Standard_D2s_v5",
702702
Mode: "User",
703703
Cluster: "cluster1",
704704
Replicas: 1,
@@ -898,7 +898,7 @@ func getAzureMachinePool(name string, mode infrav1.NodePoolMode) *infrav1.AzureM
898898
Spec: infrav1.AzureManagedMachinePoolSpec{
899899
AzureManagedMachinePoolClassSpec: infrav1.AzureManagedMachinePoolClassSpec{
900900
Mode: string(mode),
901-
SKU: "Standard_D2s_v3",
901+
SKU: "Standard_D2s_v5",
902902
Name: ptr.To(name),
903903
},
904904
},

controllers/azuremachine_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ func getFakeAzureMachine(changes ...func(*infrav1.AzureMachine)) *infrav1.AzureM
617617
},
618618
},
619619
Spec: infrav1.AzureMachineSpec{
620-
VMSize: "Standard_D2s_v3",
620+
VMSize: "Standard_D2s_v5",
621621
},
622622
}
623623
for _, change := range changes {

docs/book/src/managed/managedcluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export AZURE_SUBSCRIPTION_ID="$(cat sp.json | jq -r .subscriptionId | tr -d '\n'
6262
export AZURE_CLIENT_SECRET="$(cat sp.json | jq -r .clientSecret | tr -d '\n')"
6363
export AZURE_CLIENT_ID="$(cat sp.json | jq -r .clientId | tr -d '\n')"
6464
export AZURE_TENANT_ID="$(cat sp.json | jq -r .tenantId | tr -d '\n')"
65-
export AZURE_NODE_MACHINE_TYPE="Standard_D2s_v3"
65+
export AZURE_NODE_MACHINE_TYPE="Standard_D2s_v5"
6666
export AZURE_CLUSTER_IDENTITY_SECRET_NAME="cluster-identity-secret"
6767
export AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE="default"
6868
export CLUSTER_IDENTITY_NAME="cluster-identity"
@@ -172,7 +172,7 @@ metadata:
172172
spec:
173173
mode: System
174174
osDiskSizeGB: 30
175-
sku: Standard_D2s_v3
175+
sku: Standard_D2s_v5
176176
---
177177
apiVersion: cluster.x-k8s.io/v1beta1
178178
kind: MachinePool

docs/book/src/self-managed/machinepools.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ Virtual Machine Scale Set model, e.g., updating the OS image run by the virtual
6767
if a cluster operator wanted to change the Kubernetes version of the `MachinePool`, they would update the `Version`
6868
field on the `MachinePool`, then `AzureMachinePool` would respond by rolling out the new OS image for the specified
6969
Kubernetes version to each of the virtual machines in the scale set progressively cordon, draining, then replacing the
70-
machine. This enables `AzureMachinePools` to upgrade the underlying pool of virtual machines with minimal interruption
70+
machine. This enables `AzureMachinePools` to upgrade the underlying pool of virtual machines with minimal interruption
7171
to the workloads running on them.
7272

7373
`AzureMachinePools` also provides the ability to specify the order of virtual machine deletion.
7474

7575
#### Describing the Deployment Strategy
76-
Below we see a partially described `AzureMachinePool`. The `strategy` field describes the
77-
`AzureMachinePoolDeploymentStrategy`. At the time of writing this, there is only one strategy type, `RollingUpdate`,
76+
Below we see a partially described `AzureMachinePool`. The `strategy` field describes the
77+
`AzureMachinePoolDeploymentStrategy`. At the time of writing this, there is only one strategy type, `RollingUpdate`,
7878
which provides the ability to specify delete policy, max surge, and max unavailable.
7979

8080
- **deletePolicy:** provides three options for order of deletion `Oldest`, `Newest`, and `Random`
8181
- **maxSurge:** provides the ability to specify how many machines can be added in addition to the current replica count
8282
during an upgrade operation. This can be a percentage, or a fixed number.
83-
- **maxUnavailable:** provides the ability to specify how many machines can be unavailable at any time. This can be a
83+
- **maxUnavailable:** provides the ability to specify how many machines can be unavailable at any time. This can be a
8484
percentage, or a fixed number.
8585

8686
```yaml
@@ -99,7 +99,7 @@ spec:
9999

100100
### AzureMachinePoolMachines
101101
`AzureMachinePoolMachine` represents a virtual machine in the scale set. `AzureMachinePoolMachines` are created by the
102-
`AzureMachinePool` controller and are used to track the life cycle of a virtual machine in the scale set. When a
102+
`AzureMachinePool` controller and are used to track the life cycle of a virtual machine in the scale set. When a
103103
`AzureMachinePool` is created, each virtual machine instance will be represented as a `AzureMachinePoolMachine`
104104
resource. A cluster operator can delete the `AzureMachinePoolMachine` resource if they would like to delete a specific
105105
virtual machine from the scale set. This is useful if one would like to manually control upgrades and rollouts through
@@ -163,7 +163,7 @@ spec:
163163
storageAccountType: Premium_LRS
164164
osType: Linux
165165
sshPublicKey: ${YOUR_SSH_PUB_KEY}
166-
vmSize: Standard_D2s_v3
166+
vmSize: Standard_D2s_v5
167167
---
168168
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
169169
kind: KubeadmConfig

docs/book/src/self-managed/publicmec-clusters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Export the following variables to your current shell:
3737
export AZURE_SUBSCRIPTION_ID="$(cat sp.json | jq -r .subscriptionId | tr -d '\n')"
3838
export AZURE_CLIENT_SECRET="$(cat sp.json | jq -r .clientSecret | tr -d '\n')"
3939
export AZURE_CLIENT_ID="$(cat sp.json | jq -r .clientId | tr -d '\n')"
40-
export AZURE_CONTROL_PLANE_MACHINE_TYPE="Standard_D2s_v3"
41-
export AZURE_NODE_MACHINE_TYPE="Standard_D2s_v3"
40+
export AZURE_CONTROL_PLANE_MACHINE_TYPE="Standard_D2s_v5"
41+
export AZURE_NODE_MACHINE_TYPE="Standard_D2s_v5"
4242
export AZURE_CLUSTER_IDENTITY_SECRET_NAME="cluster-identity-secret"
4343
export AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE="default"
4444
export CLUSTER_IDENTITY_NAME="cluster-identity"

docs/book/src/topics/clusterclass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Each resource is a template for the corresponding CAPZ resource. For example, th
1515

1616
## Deploying a Self-Managed Cluster with ClusterClass
1717

18-
Users must first create a ClusterClass resource to deploy a self-managed cluster with ClusterClass. The ClusterClass resource defines the cluster topology, including the control plane and machine deployment templates. The ClusterClass resource also defines the parameters that can be used to customize the cluster topology.
18+
Users must first create a ClusterClass resource to deploy a self-managed cluster with ClusterClass. The ClusterClass resource defines the cluster topology, including the control plane and machine deployment templates. The ClusterClass resource also defines the parameters that can be used to customize the cluster topology.
1919

2020
Please refer to the Cluster API book for more information on how to write a ClusterClass topology: https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-class/write-clusterclass.html
2121

@@ -83,5 +83,5 @@ spec:
8383
spec:
8484
mode: System
8585
name: pool0
86-
sku: Standard_D2s_v3
86+
sku: Standard_D2s_v5
8787
```

templates/test/ci/cluster-template-prow-aks-aso.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)