Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tkn/infra-aws-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: "8"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -103,15 +106,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down
18 changes: 9 additions & 9 deletions tkn/infra-aws-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,29 @@ spec:
- name: arch
description: Architecture for the machine. Allowed x86_64 or arm64 (default "x86_64")
default: 'x86_64'
- name: cpus
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: '8'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: memory
description: Amount of RAM for the cloud instance in GiB (default 64)
default: '64'
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: 'false'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: 'true'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'
- name: spot-eviction-tolerance
description: |
if spot is enable we can define the minimum tolerance level of eviction.
description: |
if spot is enable we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: 'lowest'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'

# OCP params
- name: version
Expand Down
32 changes: 24 additions & 8 deletions tkn/infra-aws-ocp-snc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: '8'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -115,15 +118,9 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: 'false'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: 'true'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'
- name: spot-eviction-tolerance
description: |
if spot is enable we can define the minimum tolerance level of eviction.
Expand All @@ -132,6 +129,9 @@ spec:
- name: spot-excluded-regions
description: Comma-separated list of zone IDs to exclude from spot selection
default: ""
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'

# OCP params
- name: version
Expand All @@ -140,6 +140,12 @@ spec:
- name: disable-cluster-readiness
description: If this flag is set it will skip the checks for the cluster readiness. In this case the kubeconfig can not be generated.
default: 'false'
- name: operator-channel
description: |
Comma-separated list of operator channel overrides in the form package=channel
(e.g. rhods-operator=stable-3.x). Overrides the default OLM channel for the
named operator. Multiple overrides can be separated by commas.
default: ""
- name: profile
description: Comma-separated list of profiles to install on the cluster (e.g. virtualization, serverless-serving, serverless-eventing, serverless, servicemesh, ai). When virtualization is selected, a bare metal instance is used.
default: "''"
Expand Down Expand Up @@ -244,7 +250,7 @@ spec:
fi

# Run mapt
cmd="mapt aws ocp-snc $(params.operation) "
cmd="mapt aws openshift-snc $(params.operation) "
cmd+="--project-name ocp-snc-$(params.id) "
cmd+="--backed-url s3://${BUCKET}/mapt/ocp-snc/$(params.id) "

Expand Down Expand Up @@ -279,7 +285,17 @@ spec:
if [[ $(params.profile) != "" ]]; then
cmd+="--profile $(params.profile) "
fi

if [[ "$(params.operator-channel)" != "" ]]; then
IFS=',' read -ra channels <<< "$(params.operator-channel)"
for ch in "${channels[@]}"; do
if [[ ! "${ch}" =~ ^[a-zA-Z0-9_-]+=[a-zA-Z0-9._-]+$ ]]; then
echo "ERROR: invalid operator-channel value: ${ch}" >&2
exit 1
fi
cmd+="--operator-channel $(printf '%q' "${ch}") "
done
Comment thread
coderabbitai[bot] marked this conversation as resolved.
fi

if [[ "$(params.spot)" == "true" ]]; then
cmd+="--spot "
cmd+="--spot-increase-rate '$(params.spot-increase-rate)' "
Expand Down
10 changes: 5 additions & 5 deletions tkn/infra-aws-rhel-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
- name: custom-image
description: Custom image name to use for the cloud instance
default: ""
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -118,15 +121,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down
10 changes: 5 additions & 5 deletions tkn/infra-aws-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: "8"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -118,15 +121,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down
10 changes: 5 additions & 5 deletions tkn/template/infra-aws-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: "8"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -103,15 +106,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down
18 changes: 9 additions & 9 deletions tkn/template/infra-aws-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,29 @@ spec:
- name: arch
description: Architecture for the machine. Allowed x86_64 or arm64 (default "x86_64")
default: 'x86_64'
- name: cpus
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: '8'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: memory
description: Amount of RAM for the cloud instance in GiB (default 64)
default: '64'
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: 'false'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: 'true'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'
- name: spot-eviction-tolerance
description: |
if spot is enable we can define the minimum tolerance level of eviction.
description: |
if spot is enable we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: 'lowest'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'

# OCP params
- name: version
Expand Down
32 changes: 24 additions & 8 deletions tkn/template/infra-aws-ocp-snc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: '8'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -115,15 +118,9 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: 'false'
- name: disk-size
description: Disk size in GB for the cloud instance
default: '200'
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: 'true'
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'
- name: spot-eviction-tolerance
description: |
if spot is enable we can define the minimum tolerance level of eviction.
Expand All @@ -132,6 +129,9 @@ spec:
- name: spot-excluded-regions
description: Comma-separated list of zone IDs to exclude from spot selection
default: ""
- name: spot-increase-rate
description: Percentage to be added on top of the current calculated spot price to increase chances to get the machine.
default: '20'

# OCP params
- name: version
Expand All @@ -140,6 +140,12 @@ spec:
- name: disable-cluster-readiness
description: If this flag is set it will skip the checks for the cluster readiness. In this case the kubeconfig can not be generated.
default: 'false'
- name: operator-channel
description: |
Comma-separated list of operator channel overrides in the form package=channel
(e.g. rhods-operator=stable-3.x). Overrides the default OLM channel for the
named operator. Multiple overrides can be separated by commas.
default: ""
- name: profile
description: Comma-separated list of profiles to install on the cluster (e.g. virtualization, serverless-serving, serverless-eventing, serverless, servicemesh, ai). When virtualization is selected, a bare metal instance is used.
default: "''"
Expand Down Expand Up @@ -244,7 +250,7 @@ spec:
fi

# Run mapt
cmd="mapt aws ocp-snc $(params.operation) "
cmd="mapt aws openshift-snc $(params.operation) "
cmd+="--project-name ocp-snc-$(params.id) "
cmd+="--backed-url s3://${BUCKET}/mapt/ocp-snc/$(params.id) "

Expand Down Expand Up @@ -279,7 +285,17 @@ spec:
if [[ $(params.profile) != "" ]]; then
cmd+="--profile $(params.profile) "
fi

if [[ "$(params.operator-channel)" != "" ]]; then
IFS=',' read -ra channels <<< "$(params.operator-channel)"
for ch in "${channels[@]}"; do
if [[ ! "${ch}" =~ ^[a-zA-Z0-9_-]+=[a-zA-Z0-9._-]+$ ]]; then
echo "ERROR: invalid operator-channel value: ${ch}" >&2
exit 1
fi
cmd+="--operator-channel $(printf '%q' "${ch}") "
done
fi

if [[ "$(params.spot)" == "true" ]]; then
cmd+="--spot "
cmd+="--spot-increase-rate '$(params.spot-increase-rate)' "
Expand Down
10 changes: 5 additions & 5 deletions tkn/template/infra-aws-rhel-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
- name: custom-image
description: Custom image name to use for the cloud instance
default: ""
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -118,15 +121,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down
10 changes: 5 additions & 5 deletions tkn/template/infra-aws-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
- name: cpus
description: Number of CPUs for the cloud instance (default 8)
default: "8"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: gpu-manufacturer
description: Manufacturer company name for GPU. (i.e. NVIDIA)
default: ""
Expand All @@ -118,15 +121,12 @@ spec:
- name: nested-virt
description: Use cloud instance that has nested virtualization support
default: "false"
- name: disk-size
description: Disk size in GB for the cloud instance
default: "200"
- name: spot
description: Check best spot option to spin the machine and will create resources on that region.
default: "true"
- name: spot-eviction-tolerance
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
description: |
If spot is enabled we can define the minimum tolerance level of eviction.
Allowed value are: lowest, low, medium, high or highest
default: "lowest"
- name: spot-excluded-regions
Expand Down