Skip to content

Commit

Permalink
chore: add runPolicy to helm values; note for PhasesTransitions
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Dec 11, 2024
1 parent b5b00fb commit baaae86
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions tests/performance/statistic/cmd/stat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ func main() {
getVM := flag.Bool("vm", false, "Get VMs, default false")
flag.Parse()

// err := helpers.SaveToCSV()
// if err != nil {
// os.Exit(1)
// }

ns := *namespace

if *getVM {
Expand Down
1 change: 1 addition & 0 deletions tests/performance/statistic/internal/vm/get_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func Get(client kubeclient.Client, namespace string) {
if string(vm.Status.Phase) == "Running" {

vms.Items = append(vms.Items, VM{
// Name: vm.Status.Stats.PhasesTransitions[len(vm.Status.Stats.PhasesTransitions)-1], use range
Name: vm.Name,
VirtualMachineLaunchTimeDuration: v1alpha2.VirtualMachineLaunchTimeDuration{
WaitingForDependencies: vm.Status.Stats.LaunchTimeDuration.WaitingForDependencies,
Expand Down
2 changes: 1 addition & 1 deletion tests/performance/templates/vms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
labels:
vm: {{ $.Values.resourcesPrefix }}
spec:
runPolicy: AlwaysOn
runPolicy: {{ $.Values.runPolicy }}
enableParavirtualization: true
disruptions:
# To ensure an equal amount of virtual machines with Manual and Automatic modes during testing,
Expand Down
6 changes: 6 additions & 0 deletions tests/performance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ spec:

# viType: vi
viType: pvc
# VM startup policy
# AlwaysOn - after creation the VM is always in a running state, even in case of its shutdown by OS means.
# AlwaysOff - after creation the VM is always in the off state.
# Manual - after creation the VM is switched off, the VM state (switching on/off) is controlled via sub-resources or OS means.
# AlwaysOnUnlessStoppedManually - after creation the VM is always in a running state, even in case of its shutdown by means of the OS, the VM can be shut down using the corresponding subresource.
runPolicy: AlwaysOnUnlessStoppedManually
vmDiskType: vd
resources: "all"
resourcesPrefix: "performance"
Expand Down

0 comments on commit baaae86

Please sign in to comment.