From 8a068842fba1a913caed10f4e9fe9859b5543d76 Mon Sep 17 00:00:00 2001 From: davdhacs <105243888+davdhacs@users.noreply.github.com> Date: Fri, 15 Dec 2023 17:50:04 -0700 Subject: [PATCH] add subnets arg for hcp --- chart/infra-server/static/flavors.yaml | 9 +++++++++ .../infra-server/static/workflow-openshift-rosa-hcp.yaml | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/chart/infra-server/static/flavors.yaml b/chart/infra-server/static/flavors.yaml index 184e4b5d6..c5e867810 100644 --- a/chart/infra-server/static/flavors.yaml +++ b/chart/infra-server/static/flavors.yaml @@ -848,6 +848,15 @@ help: | Run as ROSA HCP? + - name: subnet-ids + description: Subnets for the cluster. + value: "true" + kind: optional + help: | + Set like "public_subnet,private_subnet" + It will be placed in the command like `rosa create cluster --subnet-ids $SUBNET_IDS` + Set empty for the installer to create a new empty vpc and subnets. + - name: rosa-args description: additional rosa cli args value: "--sts" diff --git a/chart/infra-server/static/workflow-openshift-rosa-hcp.yaml b/chart/infra-server/static/workflow-openshift-rosa-hcp.yaml index 57ae61c43..6e2270c5f 100644 --- a/chart/infra-server/static/workflow-openshift-rosa-hcp.yaml +++ b/chart/infra-server/static/workflow-openshift-rosa-hcp.yaml @@ -10,13 +10,15 @@ spec: - name: rosa-args value: "" - name: aws-region - value: "us-east-2" + value: "us-east-1" - name: managed-cp value: true + - name: SUBNET_IDS + value: "" - name: nodes value: "2" - name: machine-type - value: "m5.xlarge" + value: "m5.2xlarge" volumeClaimTemplates: - metadata: name: data @@ -78,6 +80,8 @@ spec: value: "{{workflow.parameters.aws-region}}" - name: MANAGED_CP value: "{{workflow.parameters.managed-cp}}" + - name: SUBNET_IDS + value: "{{workflow.parameters.subnet-ids}}" - name: NODE_COUNT value: "{{workflow.parameters.nodes}}" - name: INSTANCE_TYPE