-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
969 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
approvers: | ||
- deepsm007 | ||
- multiarch-approvers | ||
reviewers: | ||
- multiarch-reviewers |
5 changes: 5 additions & 0 deletions
5
ci-operator/step-registry/openshift/e2e/libvirt/upi/heterogeneous/OWNERS
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,5 @@ | ||
approvers: | ||
- deepsm007 | ||
- multiarch-approvers | ||
reviewers: | ||
- multiarch-reviewers |
12 changes: 12 additions & 0 deletions
12
.../libvirt/upi/heterogeneous/openshift-e2e-libvirt-upi-heterogeneous-workflow.metadata.json
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,12 @@ | ||
{ | ||
"path": "openshift/e2e/libvirt/upi/heterogeneous/openshift-e2e-libvirt-upi-heterogeneous-workflow.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"deepsm007", | ||
"multiarch-approvers" | ||
], | ||
"reviewers": [ | ||
"multiarch-reviewers" | ||
] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...shift/e2e/libvirt/upi/heterogeneous/openshift-e2e-libvirt-upi-heterogeneous-workflow.yaml
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,9 @@ | ||
workflow: | ||
as: openshift-e2e-libvirt-upi-heterogeneous | ||
steps: | ||
pre: | ||
- chain: upi-libvirt-pre | ||
test: | ||
post: | ||
documentation: |- | ||
TODO |
12 changes: 12 additions & 0 deletions
12
.../step-registry/openshift/e2e/libvirt/upi/openshift-e2e-libvirt-upi-workflow.metadata.json
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,12 @@ | ||
{ | ||
"path": "openshift/e2e/libvirt/upi/openshift-e2e-libvirt-upi-workflow.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"deepsm007", | ||
"multiarch-approvers" | ||
], | ||
"reviewers": [ | ||
"multiarch-reviewers" | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
ci-operator/step-registry/openshift/e2e/libvirt/upi/openshift-e2e-libvirt-upi-workflow.yaml
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,13 @@ | ||
workflow: | ||
as: openshift-e2e-libvirt-upi | ||
steps: | ||
pre: | ||
- chain: upi-libvirt-pre | ||
test: | ||
- chain: openshift-e2e-libvirt-test | ||
post: | ||
- chain: upi-libvirt-post | ||
documentation: |- | ||
The UPI workflow provides pre- and post- steps that provision and | ||
deprovision an OpenShift cluster with a default configuration on libvirt, | ||
allowing job authors to inject their own end-to-end test logic. |
8 changes: 8 additions & 0 deletions
8
ci-operator/step-registry/upi/install/heterogeneous/libvirt/OWNERS
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,8 @@ | ||
approvers: | ||
- aleskandro | ||
- deepsm007 | ||
- jaypoulz | ||
- jeffdyoung | ||
- Prashanth684 | ||
- Shilpa-Gokul | ||
- prb112 |
7 changes: 7 additions & 0 deletions
7
...-registry/upi/install/heterogeneous/libvirt/upi-install-heterogeneous-libvirt-commands.sh
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o pipefail | ||
|
||
echo "not implemented yet" |
14 changes: 14 additions & 0 deletions
14
...try/upi/install/heterogeneous/libvirt/upi-install-heterogeneous-libvirt-ref.metadata.json
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,14 @@ | ||
{ | ||
"path": "upi/install/heterogeneous/libvirt/upi-install-heterogeneous-libvirt-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"aleskandro", | ||
"deepsm007", | ||
"jaypoulz", | ||
"jeffdyoung", | ||
"Prashanth684", | ||
"Shilpa-Gokul", | ||
"prb112" | ||
] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...tep-registry/upi/install/heterogeneous/libvirt/upi-install-heterogeneous-libvirt-ref.yaml
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,15 @@ | ||
ref: | ||
as: upi-install-heterogeneous-libvirt | ||
from: upi-installer | ||
grace_period: 10m | ||
commands: upi-install-heterogeneous-libvirt-commands.sh | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 100Mi | ||
env: | ||
- name: ADDITIONAL_WORKER_ARCHITECTURE | ||
default: "x86_64" | ||
documentation: "Heterogeneous worker architecture" | ||
documentation: |- | ||
TODO |
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,2 @@ | ||
approvers: | ||
- werled |
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,8 @@ | ||
approvers: | ||
- aleskandro | ||
- deepsm007 | ||
- jaypoulz | ||
- jeffdyoung | ||
- Prashanth684 | ||
- Shilpa-Gokul | ||
- prb112 |
63 changes: 63 additions & 0 deletions
63
ci-operator/step-registry/upi/libvirt/conf/upi-libvirt-conf-commands.sh
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,63 @@ | ||
#!/bin/bash | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o pipefail | ||
|
||
|
||
touch ${SHARED_DIR}/cluster-config.yaml | ||
|
||
echo "Installing from initial release ${RELEASE_IMAGE_LATEST}" | ||
|
||
openshift-install version | ||
|
||
CONFIG="${SHARED_DIR}/install-config.yaml" | ||
|
||
function cleanup_leftover_resources { | ||
return | ||
} | ||
|
||
cleanup_leftover_resources | ||
|
||
CLUSTER_NAME="ocpzx" | ||
BASE_DOMAIN="yellowzone" | ||
|
||
cat >> "${CONFIG}" << EOF | ||
apiVersion: v1 | ||
baseDomain: ${BASE_DOMAIN} | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
controlPlane: | ||
architecture: ${ARCH} | ||
hyperthreading: Enabled | ||
name: master | ||
replicas: ${MASTER_REPLICAS} | ||
compute: | ||
- architecture: ${ARCH} | ||
hyperthreading: Enabled | ||
name: worker | ||
replicas: 0 | ||
networking: | ||
clusterNetwork: | ||
- cidr: 10.128.0.0/14 | ||
hostPrefix: 23 | ||
networkType: OVNKubernetes | ||
serviceNetwork: | ||
- 172.30.0.0/16 | ||
platform: | ||
none: {} | ||
fips: false | ||
pullSecret: > | ||
$(<"${CLUSTER_PROFILE_DIR}/pull-secret") | ||
sshKey: | | ||
$(<"${CLUSTER_PROFILE_DIR}/ssh-publickey") | ||
EOF | ||
|
||
curl -LO https://github.com/mikefarah/yq/releases/download/v4.40.2/yq_linux_amd64 && chmod u+x ./yq_linux_amd64 | ||
|
||
openshift-install create manifests --dir "${SHARED_DIR}" | ||
|
||
echo "Setting mastersSchedulable to false in manifests/cluster-scheduler-02-config.yml" | ||
./yq_linux_amd64 -i '.spec.mastersSchedulable = false' shared/manifests/cluster-scheduler-02-config.yml | ||
|
||
openshift-install create ignition-configs --dir "${SHARED_DIR}" |
14 changes: 14 additions & 0 deletions
14
ci-operator/step-registry/upi/libvirt/conf/upi-libvirt-conf-ref.metadata.json
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,14 @@ | ||
{ | ||
"path": "upi/libvirt/conf/upi-libvirt-conf-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"aleskandro", | ||
"deepsm007", | ||
"jaypoulz", | ||
"jeffdyoung", | ||
"Prashanth684", | ||
"Shilpa-Gokul", | ||
"prb112" | ||
] | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
ci-operator/step-registry/upi/libvirt/conf/upi-libvirt-conf-ref.yaml
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,20 @@ | ||
ref: | ||
as: upi-libvirt-conf | ||
from: libvirt-installer | ||
commands: upi-libvirt-conf-commands.sh | ||
env: | ||
- name: ARCH | ||
- name: BRANCH | ||
- name: MASTER_REPLICAS | ||
default: "3" | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 100Mi | ||
dependencies: | ||
- name: "release:latest" | ||
env: OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE | ||
- name: "release:latest" | ||
env: RELEASE_IMAGE_LATEST | ||
documentation: >- | ||
TODO |
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,8 @@ | ||
approvers: | ||
- aleskandro | ||
- deepsm007 | ||
- jaypoulz | ||
- jeffdyoung | ||
- Prashanth684 | ||
- Shilpa-Gokul | ||
- prb112 |
25 changes: 25 additions & 0 deletions
25
ci-operator/step-registry/upi/libvirt/deprovision/upi-libvirt-deprovision-commands.sh
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,25 @@ | ||
#!/bin/bash | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o pipefail | ||
|
||
|
||
export LIBVIRT_DEFAULT_URI="qemu+tcp://localhost:16513/system" | ||
|
||
DOMAINS_TO_DESTROY=$(virsh list | grep -ocpzx-yellowzone) | ||
for domain in $DOMAINS_TO_DESTROY; do | ||
echo "virsh undefine $domain" | ||
echo "virsh destroy $domain" | ||
echo "virsh vol-delete --pool images $domain.qcow2" | ||
done | ||
|
||
|
||
export LIBVIRT_DEFAULT_URI="qemu+tcp://localhost:16514/system" | ||
|
||
DOMAINS_TO_DESTROY=$(virsh list | grep -ocpzx-yellowzone) | ||
for domain in $DOMAINS_TO_DESTROY; do | ||
echo "virsh undefine $domain" | ||
echo "virsh destroy $domain" | ||
echo "virsh vol-delete --pool images $domain.qcow2" | ||
done |
14 changes: 14 additions & 0 deletions
14
ci-operator/step-registry/upi/libvirt/deprovision/upi-libvirt-deprovision-ref.metadata.json
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,14 @@ | ||
{ | ||
"path": "upi/libvirt/deprovision/upi-libvirt-deprovision-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"aleskandro", | ||
"deepsm007", | ||
"jaypoulz", | ||
"jeffdyoung", | ||
"Prashanth684", | ||
"Shilpa-Gokul", | ||
"prb112" | ||
] | ||
} | ||
} |
Oops, something went wrong.