Skip to content

Commit

Permalink
Use CPUCredits in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Feb 26, 2021
1 parent 1f295e4 commit cbc9541
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/integration/update_cluster/complex/cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@
}
}
],
"CreditSpecification": {
"CpuCredits": "standard"
},
"IamInstanceProfile": {
"Name": {
"Ref": "AWSIAMInstanceProfilenodescomplexexamplecom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ spec:
detailedInstanceMonitoring: true
rootVolumeDeleteOnTermination: false
rootVolumeEncryption: true
cpuCredits: standard
volumes:
- device: /dev/xvdd
deleteOnTermination: false
Expand Down
1 change: 1 addition & 0 deletions tests/integration/update_cluster/complex/in-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ spec:
detailedInstanceMonitoring: true
rootVolumeDeleteOnTermination: false
rootVolumeEncryption: true
cpuCredits: standard
volumes:
- device: /dev/xvdd
deleteOnTermination: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spec.mixedInstancesPolicy.instances=m5.large
spec.mixedInstancesPolicy.instances=t3.large
---
spec.mixedInstancesPolicy.instances=m5.xlarge
spec.mixedInstancesPolicy.instances=t2.medium
3 changes: 3 additions & 0 deletions tests/integration/update_cluster/complex/kubernetes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ resource "aws_launch_template" "nodes-complex-example-com" {
volume_type = "gp2"
}
}
credit_specification {
cpu_credits = "standard"
}
iam_instance_profile {
name = aws_iam_instance_profile.nodes-complex-example-com.id
}
Expand Down

0 comments on commit cbc9541

Please sign in to comment.