Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ tests:
steps:
cluster_profile: aws
workflow: origin-e2e-aws-ovn
- as: e2e-ovn-hybrid-step-registry
commands: ""
steps:
cluster_profile: aws
workflow: origin-e2e-aws-ovn-hybrid
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,83 @@ presubmits:
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )e2e-gcp-upgrade,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: api.ci
context: ci/prow/e2e-ovn-hybrid-step-registry
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-cluster-network-operator-master-e2e-ovn-hybrid-step-registry
optional: true
rerun_command: /test e2e-ovn-hybrid-step-registry
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --kubeconfig=/etc/apici/kubeconfig
- --lease-server-password-file=/etc/boskos/password
- --lease-server-username=ci
- --lease-server=https://boskos-ci.svc.ci.openshift.org
- --secret-dir=/usr/local/e2e-ovn-hybrid-step-registry-cluster-profile
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=e2e-ovn-hybrid-step-registry
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/apici
name: apici-ci-operator-credentials
readOnly: true
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /usr/local/e2e-ovn-hybrid-step-registry-cluster-profile
name: cluster-profile
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: apici-ci-operator-credentials
secret:
items:
- key: sa.ci-operator.apici.config
path: kubeconfig
secretName: apici-ci-operator-credentials
- name: boskos
secret:
items:
- key: password
path: password
secretName: boskos-credentials
- name: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-aws
- name: pull-secret
secret:
secretName: regcred
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )e2e-ovn-hybrid-step-registry,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ cp "${SHARED_DIR}/install-config.yaml" "${dir}/"
mkdir -p ~/.ssh
cp "${SSH_PRIV_KEY_PATH}" ~/.ssh/


TF_LOG=debug openshift-install --dir="${dir}" create manifests

while IFS= read -r -d '' item
do
manifest="$( basename "${item}" )"
cp "${item}" "${dir}/manifests/${manifest##manifest_}"
done < <( find "${SHARED_DIR}" -name "manifest_*.yml" -print0)


TF_LOG=debug openshift-install --dir="${dir}" create cluster 2>&1 | grep --line-buffered -v password &

set +e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ ref:
cpu: 1000m
memory: 2Gi
documentation: |-
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.
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexNPavel can we embed HTML here or something? I would love to see a fully-fledged example.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could allow markdown and use https://godoc.org/github.com/gomarkdown/markdown/html to convert to html for steps.svc.

17 changes: 17 additions & 0 deletions ci-operator/step-registry/origin/e2e-aws-ovn-hybrid/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- danwinship
- dcbw
- knobunc
- pecameron
- squeed
reviewers:
- alexanderconstantinescu
- danwinship
- dcbw
- jacobtanenbaum
- pecameron
- rcarrillocruz
- squeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
workflow:
as: origin-e2e-aws-ovn-hybrid
steps:
pre:
- chain: ipi-conf-aws
- ref: ovn-conf
- ref: ovn-conf-hybrid-manifest
- chain: ipi-install
test:
- ref: origin-e2e-test
post:
- chain: ipi-deprovision
documentation: |-
The Origin E2E OVN workflow executes the common end-to-end test suite with the OVNKubernetes network plugin with a configured hybrid network.
17 changes: 17 additions & 0 deletions ci-operator/step-registry/ovn/conf/hybrid-manifest/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- danwinship
- dcbw
- knobunc
- pecameron
- squeed
reviewers:
- alexanderconstantinescu
- danwinship
- dcbw
- jacobtanenbaum
- pecameron
- rcarrillocruz
- squeed
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail

cat >> "${SHARED_DIR}/manifest_cluster-network-03-config.yml" << EOF
apiVersion: config.openshift.io/v1
kind: Network
metadata:
name: cluster
spec:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
defaultNetwork:
ovnKubernetesConfig:
hybridOverlayConfig:
hybridClusterNetwork:
- cidr: 10.132.0.0/14
hostPrefix: 23
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ref:
as: ovn-conf-hybrid-manifest
from: base
commands: ovn-conf-hybrid-manifest-commands.sh
resources:
requests:
cpu: 10m
memory: 100Mi
documentation: |-
The ovn hybrid manifest step adds the configuration for the hybrid networking to set of manifests for installation