mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
ci-automation/vendor-testing/azure: Allow passing kola vnet
This adds support for providing a value for the newly introduce --azure-kola-vnet kola parameter through the environment. This parameter is meant to indicate that kola is running inside of a vnet in Azure and the kola created storage account will be restricted to being accessed from that vnet. This lets us disable public access to storage accounts. Needs a corresponding change to jenkins jobs, because we have no way of determining what vnet a worker node is connected to programmatically. So it needs to be defined by the job. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
e4cc483b67
commit
a35bd4cc38
@ -149,6 +149,7 @@ AWS_PARALLEL="${PARALLEL_TESTS:-8}"
|
||||
: ${AZURE_amd64_MACHINE_SIZE:="Standard_D2s_v4"}
|
||||
: ${AZURE_arm64_MACHINE_SIZE:="Standard_D2pls_v5"}
|
||||
: ${AZURE_USE_GALLERY:=""}
|
||||
: ${AZURE_KOLA_VNET:=""}
|
||||
: ${AZURE_USE_PRIVATE_IPS:=true}
|
||||
: ${AZURE_VNET_SUBNET_NAME:="jenkins-vnet-westeurope"}
|
||||
AZURE_PARALLEL="${PARALLEL_TESTS:-20}"
|
||||
|
@ -56,6 +56,7 @@ run_kola_tests() {
|
||||
--azure-size="${instance_type}" \
|
||||
--azure-hyper-v-generation="${hyperv_gen}" \
|
||||
${AZURE_USE_GALLERY} \
|
||||
${AZURE_KOLA_VNET:+--azure-kola-vnet=${AZURE_KOLA_VNET}} \
|
||||
${azure_vnet_subnet_name:+--azure-vnet-subnet-name=${azure_vnet_subnet_name}} \
|
||||
${AZURE_USE_PRIVATE_IPS:+--azure-use-private-ips=${AZURE_USE_PRIVATE_IPS}} \
|
||||
"${@}"
|
||||
|
Loading…
Reference in New Issue
Block a user