-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
neonvm-controller: add spec.cpuScalingMode, change vm-controller to e…
…xplicitly default the field value if it is not set Signed-off-by: Misha Sakhnov <[email protected]>
- Loading branch information
1 parent
1a7acbc
commit 0ecb11d
Showing
7 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 90 | ||
--- | ||
apiVersion: vm.neon.tech/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: example | ||
# temporary added this check to validate that defaulting cpuScalingMode works as expected | ||
# field spec.cpuScalingMode should go to default value `qmp_scaling` if it is not set | ||
# TODO: delete once the https://github.com/neondatabase/autoscaling/issues/1082 went live | ||
spec: | ||
cpuScalingMode: qmpScaling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
unitTest: false | ||
--- | ||
apiVersion: vm.neon.tech/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
name: example | ||
spec: | ||
schedulerName: autoscale-scheduler | ||
guest: | ||
cpus: | ||
min: 0.25 | ||
use: 0.25 | ||
max: 0.25 | ||
memorySlotSize: 1Gi | ||
memorySlots: | ||
min: 1 | ||
use: 1 | ||
max: 1 | ||
rootDisk: | ||
image: vm-postgres:15-bullseye | ||
size: 1Gi |