Skip to content

Commit d11bca7

Browse files
create a hybrid cluster and run the e2e tests on it
1 parent ff8a0f8 commit d11bca7

File tree

8 files changed

+98
-1
lines changed

8 files changed

+98
-1
lines changed

ci-operator/config/openshift/cluster-network-operator/openshift-cluster-network-operator-master.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@ tests:
6060
steps:
6161
cluster_profile: aws
6262
workflow: origin-e2e-aws-ovn
63+
- as: e2e-ovn-hybrid-step-registry
64+
commands: ""
65+
steps:
66+
cluster_profile: aws
67+
workflow: origin-e2e-aws-ovn-hybrid

ci-operator/step-registry/ipi/install/install/ipi-install-install-commands.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ cp "${SHARED_DIR}/install-config.yaml" "${dir}/"
3535
mkdir -p ~/.ssh
3636
cp "${SSH_PRIV_KEY_PATH}" ~/.ssh/
3737

38+
39+
TF_LOG=debug openshift-install --dir="${dir}" create manifests
40+
41+
while IFS= read -r -d '' item
42+
do
43+
manifest="$( basename "${item}" )"
44+
cp "${item}" "${dir}/manifests/${manifest##manifest_}"
45+
done < <( find "${SHARED_DIR}" -name "manifest_*.yml" -print0)
46+
47+
3848
TF_LOG=debug openshift-install --dir="${dir}" create cluster 2>&1 | grep --line-buffered -v password &
3949

4050
set +e

ci-operator/step-registry/ipi/install/install/ipi-install-install-ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ref:
77
cpu: 1000m
88
memory: 2Gi
99
documentation: |-
10-
The IPI install step runs the OpenShift Installer in order to bring up an OpenShift cluster, using the provided cluster profile to choose a target IaaS platform.
10+
The IPI install step runs the OpenShift Installer in order to bring up an OpenShift cluster, using the provided cluster profile to choose a target IaaS platform. Anything that needs to be configured using manifests should generate them before this step and put them in the SHARED_DIR with the filename manifest_(manifest_name).yml so that this step can pull in the manifest in.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
3+
4+
approvers:
5+
- danwinship
6+
- dcbw
7+
- knobunc
8+
- pecameron
9+
- squeed
10+
reviewers:
11+
- alexanderconstantinescu
12+
- danwinship
13+
- dcbw
14+
- jacobtanenbaum
15+
- pecameron
16+
- rcarrillocruz
17+
- squeed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
workflow:
2+
as: origin-e2e-aws-ovn-hybrid
3+
steps:
4+
pre:
5+
- chain: ipi-conf-aws
6+
- ref: ovn-conf
7+
- ref: ovn-conf-hybrid-manifest
8+
- chain: ipi-install
9+
test:
10+
- ref: origin-e2e-test
11+
post:
12+
- chain: ipi-deprovision
13+
documentation: |-
14+
The Origin E2E OVN workflow executes the common end-to-end test suite with the OVNKubernetes network plugin with a configured hybrid network.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
3+
4+
approvers:
5+
- danwinship
6+
- dcbw
7+
- knobunc
8+
- pecameron
9+
- squeed
10+
reviewers:
11+
- alexanderconstantinescu
12+
- danwinship
13+
- dcbw
14+
- jacobtanenbaum
15+
- pecameron
16+
- rcarrillocruz
17+
- squeed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
set -o errexit
3+
set -o nounset
4+
set -o pipefail
5+
6+
cat >> "${SHARED_DIR}/manifest_cluster-network-03-config.yml" << EOF
7+
apiVersion: config.openshift.io/v1
8+
kind: Network
9+
metadata:
10+
name: cluster
11+
spec:
12+
clusterNetwork:
13+
- cidr: 10.128.0.0/14
14+
hostPrefix: 23
15+
defaultNetwork:
16+
ovnKubernetesConfig:
17+
hybridOverlayConfig:
18+
hybridClusterNetwork:
19+
- cidr: 10.132.0.0/14
20+
hostPrefix: 23
21+
networkType: OVNKubernetes
22+
serviceNetwork:
23+
- 172.30.0.0/16
24+
EOF
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ref:
2+
as: ovn-conf-hybrid-manifest
3+
from: base
4+
commands: ovn-conf-hybrid-manifest-commands.sh
5+
resources:
6+
requests:
7+
cpu: 10m
8+
memory: 100Mi
9+
documentation: |-
10+
The ovn hybrid manifest step adds the configuration for the hybrid networking to set of manifests for installation

0 commit comments

Comments
 (0)