-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ROSA and ARO automation flavors (#535)
* Adds ROSA and ARO automation flavors * Updates provisioner images libraries/packages/tooling * Infra UI now shows cluster flavor in the "My Clusters" cards
- Loading branch information
Shane Bostick
authored
Sep 17, 2021
1 parent
64046f8
commit 74fdfd4
Showing
17 changed files
with
393 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: aro- | ||
spec: | ||
entrypoint: start | ||
arguments: | ||
parameters: | ||
- name: name | ||
- name: nodes | ||
value: "4" | ||
- name: machine-type | ||
value: "Standard_D4s_v3" | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: data | ||
spec: | ||
accessModes: [ "ReadWriteOnce" ] | ||
resources: | ||
requests: | ||
storage: 10Mi | ||
|
||
templates: | ||
- name: start | ||
steps: | ||
- - name: create | ||
template: create | ||
|
||
- - name: gather | ||
template: gather | ||
|
||
- - name: wait | ||
template: wait | ||
|
||
- - name: destroy | ||
template: destroy | ||
|
||
- name: create | ||
activeDeadlineSeconds: 7200 | ||
container: | ||
image: gcr.io/stackrox-infra/automation-flavors/openshift-aro:0.2.14 | ||
imagePullPolicy: Always | ||
args: | ||
- create | ||
- "{{workflow.parameters.name}}" | ||
env: | ||
- name: AZURE_SUBSCRIPTION_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SUBSCRIPTION_ID | ||
- name: AZURE_SP_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_CLIENT_ID | ||
- name: AZURE_SP_TENANT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_TENANT_ID | ||
- name: AZURE_SP_SECRET_VAL | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_SECRET_VAL | ||
- name: REDHAT_PULL_SECRET_BASE64 | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: REDHAT_PULL_SECRET_BASE64 | ||
- name: NODE_COUNT | ||
value: "{{workflow.parameters.nodes}}" | ||
- name: INSTANCE_TYPE | ||
value: "{{workflow.parameters.machine-type}}" | ||
- name: CREATION_SOURCE | ||
value: "infra" | ||
volumeMounts: | ||
- name: data | ||
mountPath: /data | ||
|
||
- name: gather | ||
container: | ||
image: busybox | ||
imagePullPolicy: Always | ||
command: [echo, "gathering artifacts"] | ||
volumeMounts: | ||
- name: data | ||
mountPath: /data | ||
outputs: | ||
artifacts: | ||
- name: kubeconfig | ||
path: /data/kubeconfig | ||
archive: | ||
none: {} | ||
- name: dotenv | ||
path: /data/dotenv | ||
archive: | ||
none: {} | ||
- name: data | ||
path: /data | ||
archive: | ||
tar: {} | ||
|
||
- name: wait | ||
suspend: {} | ||
|
||
- name: destroy | ||
activeDeadlineSeconds: 3600 | ||
container: | ||
image: gcr.io/stackrox-infra/automation-flavors/openshift-aro:0.2.14 | ||
imagePullPolicy: Always | ||
args: | ||
- destroy | ||
- "{{workflow.parameters.name}}" | ||
env: | ||
- name: AZURE_SUBSCRIPTION_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SUBSCRIPTION_ID | ||
- name: AZURE_SP_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_CLIENT_ID | ||
- name: AZURE_SP_TENANT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_TENANT_ID | ||
- name: AZURE_SP_SECRET_VAL | ||
valueFrom: | ||
secretKeyRef: | ||
name: aro-cluster-manager | ||
key: AZURE_SP_SECRET_VAL | ||
volumeMounts: | ||
- name: data | ||
mountPath: /data |
Oops, something went wrong.