Skip to content

Commit e641eef

Browse files
anjannathadrianriobo
authored andcommitted
tkn: update task for azure windows desktop
replace the use of flag `--vmsize` with `--compute-sizes` flag name was updated in bd2d626
1 parent 9294e98 commit e641eef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tkn/infra-azure-windows-desktop.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ spec:
9090
- name: nested-virt
9191
description: Use cloud instance that has nested virtualization support
9292
default: 'false'
93-
- name: vmsize
94-
description: size for the machine
93+
- name: compute-sizes
94+
description: Comma separated list of sizes for the machine
9595
default: "''"
9696
- name: spot
9797
description: in case spot is set to true it will check for best spot price and create the VM on the target region
@@ -213,7 +213,7 @@ spec:
213213
cmd+="--cpus $(params.cpus) "
214214
cmd+="--memory $(params.memory) "
215215
if [[ $(params.nested-virt) == "true" ]]; then cmd+="--nested-virt "; fi
216-
if [[ -z $(params.vmsize) ]]; then cmd+="--vmsize $(params.vmsize) "; fi
216+
if [[ -n $(params.compute-sizes) ]]; then cmd+="--compute-sizes $(params.compute-sizes) "; fi
217217
if [[ $(params.spot) == "true" ]]; then
218218
cmd+="--spot --spot-eviction-tolerance $(params.spot-eviction-tolerance) --spot-increase-rate $(params.spot-increase-rate) "
219219
fi

tkn/template/infra-azure-windows-desktop.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ spec:
9090
- name: nested-virt
9191
description: Use cloud instance that has nested virtualization support
9292
default: 'false'
93-
- name: vmsize
94-
description: size for the machine
93+
- name: compute-sizes
94+
description: Comma separated list of sizes for the machine
9595
default: "''"
9696
- name: spot
9797
description: in case spot is set to true it will check for best spot price and create the VM on the target region
@@ -213,7 +213,7 @@ spec:
213213
cmd+="--cpus $(params.cpus) "
214214
cmd+="--memory $(params.memory) "
215215
if [[ $(params.nested-virt) == "true" ]]; then cmd+="--nested-virt "; fi
216-
if [[ -z $(params.vmsize) ]]; then cmd+="--vmsize $(params.vmsize) "; fi
216+
if [[ -n $(params.compute-sizes) ]]; then cmd+="--compute-sizes $(params.compute-sizes) "; fi
217217
if [[ $(params.spot) == "true" ]]; then
218218
cmd+="--spot --spot-eviction-tolerance $(params.spot-eviction-tolerance) --spot-increase-rate $(params.spot-increase-rate) "
219219
fi

0 commit comments

Comments
 (0)