Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try rosa hcp #964

Closed
wants to merge 12 commits into from
16 changes: 16 additions & 0 deletions chart/infra-server/static/flavors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,22 @@
value: "4"
kind: optional

- name: aws-region
description: aws region for cluster
value: "us-east-2"
kind: optional

- name: managed-cp
description: Use managed control-plane?
value: "false"
kind: optional
help: ROSA will switch to managed control-plane (Hypershift) by default around the end of 2023.

- name: rosa-args
description: additional rosa cli args
value: ""
kind: optional

- name: machine-type
description: node machine type
value: m5.xlarge
Expand Down
22 changes: 20 additions & 2 deletions chart/infra-server/static/workflow-openshift-rosa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ spec:
arguments:
parameters:
- name: name
- name: rosa-args
value: ""
- name: aws-region
value: "us-east-2"
- name: managed-cp
value: false
- name: nodes
value: "4"
- name: machine-type
Expand Down Expand Up @@ -38,7 +44,7 @@ spec:
- name: create
activeDeadlineSeconds: 7200
container:
image: quay.io/stackrox-io/ci:automation-flavors-rosa-0.7.5
image: quay.io/stackrox-io/ci:automation-flavors-rosa-0.8.3-21-g70472dffa6-snapshot
imagePullPolicy: Always
command:
- ./entrypoint.sh
Expand Down Expand Up @@ -66,6 +72,12 @@ spec:
secretKeyRef:
name: osd-access-secrets
key: OPENSHIFT_CLUSTER_MANAGER_API_TOKEN
- name: AWS_DEFAULT_REGION
value: "{{workflow.parameters.aws-region}}"
- name: AWS_REGION
value: "{{workflow.parameters.aws-region}}"
- name: MANAGED_CP
value: "{{workflow.parameters.managed-cp}}"
- name: NODE_COUNT
value: "{{workflow.parameters.nodes}}"
- name: INSTANCE_TYPE
Expand Down Expand Up @@ -122,14 +134,20 @@ spec:
- name: destroy
activeDeadlineSeconds: 3600
container:
image: quay.io/stackrox-io/ci:automation-flavors-rosa-0.7.5
image: quay.io/stackrox-io/ci:automation-flavors-rosa-0.8.3-21-g70472dffa6-snapshot
imagePullPolicy: Always
command:
- ./entrypoint.sh
args:
- destroy
- "{{workflow.parameters.name}}"
env:
- name: ROSA_ARGS
value: "{{workflow.parameters.rosa-args}}"
- name: AWS_DEFAULT_REGION
value: "{{workflow.parameters.aws-region}}"
- name: AWS_REGION
value: "{{workflow.parameters.aws-region}}"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
Expand Down