Skip to content

Commit

Permalink
Merge pull request #8323 from aravindhp/hybrid-ovn-step-registry
Browse files Browse the repository at this point in the history
Move to using step registry in WMCO
  • Loading branch information
openshift-merge-robot authored Apr 22, 2020
2 parents 668f67f + b6bfcc5 commit 812635c
Show file tree
Hide file tree
Showing 15 changed files with 225 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ tests:
commands: make unit
container:
from: src
- as: e2e-operator
steps:
cluster_profile: aws
workflow: ipi-aws-ovn-hybrid
test:
- ref: windows-e2e-operator-test
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ tests:
commands: make unit
container:
from: src
- as: e2e-operator
steps:
cluster_profile: aws
workflow: ipi-aws-ovn-hybrid
test:
- ref: windows-e2e-operator-test
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ tests:
commands: make unit
container:
from: src
- as: e2e-operator
steps:
cluster_profile: aws
workflow: ipi-aws-ovn-hybrid
test:
- ref: windows-e2e-operator-test
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ presubmits:
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-windows-machine-config-operator-master-e2e-operator
rerun_command: /test e2e-operator
Expand All @@ -72,23 +73,10 @@ presubmits:
- --lease-server-password-file=/etc/boskos/password
- --lease-server-username=ci
- --lease-server=https://boskos-ci.svc.ci.openshift.org
- --repo=windows-machine-config-operator
- --secret-dir=/usr/local/e2e-operator-cluster-profile
- --target=e2e-operator
- --template=/usr/local/e2e-operator
command:
- ci-operator
env:
- name: CLUSTER_TYPE
value: aws
- name: CLUSTER_VARIANT
value: ovn
- name: JOB_NAME_SAFE
value: e2e-operator
- name: TEST_COMMAND
value: make run-ci-e2e-test
- name: TEST_IMAGESTREAM_TAG
value: pipeline:windows-machine-config-operator-test
image: ci-operator:latest
imagePullPolicy: Always
name: ""
Expand All @@ -104,15 +92,9 @@ presubmits:
readOnly: true
- mountPath: /usr/local/e2e-operator-cluster-profile
name: cluster-profile
- mountPath: /usr/local/e2e-operator
name: job-definition
subPath: cluster-launch-installer-custom-test-image.yaml
- 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
Expand All @@ -132,15 +114,9 @@ presubmits:
sources:
- secret:
name: cluster-secrets-aws
- configMap:
name: prow-job-cluster-launch-installer-custom-test-image
name: job-definition
- name: pull-secret
secret:
secretName: regcred
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )e2e-operator,?($|\s.*)
- agent: kubernetes
always_run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,75 @@ presubmits:
secret:
secretName: regcred
trigger: (?m)^/test( | .* )build,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- release-4.5
cluster: api.ci
context: ci/prow/e2e-operator
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-windows-machine-config-operator-release-4.5-e2e-operator
rerun_command: /test e2e-operator
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-operator-cluster-profile
- --target=e2e-operator
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-operator-cluster-profile
name: cluster-profile
- mountPath: /etc/pull-secret
name: pull-secret
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
trigger: (?m)^/test( | .* )e2e-operator,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,75 @@ presubmits:
secret:
secretName: regcred
trigger: (?m)^/test( | .* )build,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- release-4.6
cluster: api.ci
context: ci/prow/e2e-operator
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-windows-machine-config-operator-release-4.6-e2e-operator
rerun_command: /test e2e-operator
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-operator-cluster-profile
- --target=e2e-operator
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-operator-cluster-profile
name: cluster-profile
- mountPath: /etc/pull-secret
name: pull-secret
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
trigger: (?m)^/test( | .* )e2e-operator,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
6 changes: 6 additions & 0 deletions ci-operator/step-registry/ipi/aws/ovn/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
6 changes: 6 additions & 0 deletions ci-operator/step-registry/ipi/aws/ovn/hybrid/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
workflow:
as: ipi-aws-ovn-hybrid
steps:
pre:
- chain: ipi-conf-aws
- ref: ovn-conf
- ref: ovn-conf-hybrid-manifest
- chain: ipi-install
post:
- chain: ipi-deprovision
documentation: |-
OpenShift cluster configured with Hybrid OVN network
6 changes: 6 additions & 0 deletions ci-operator/step-registry/windows/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
6 changes: 6 additions & 0 deletions ci-operator/step-registry/windows/e2e/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
6 changes: 6 additions & 0 deletions ci-operator/step-registry/windows/e2e/operator/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
6 changes: 6 additions & 0 deletions ci-operator/step-registry/windows/e2e/operator/test/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
approvers:
- aravindhp
- ravisantoshgudimetla
reviewers:
- aravindhp
- ravisantoshgudimetla
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -o nounset
set -o errexit
set -o pipefail

cluster_profile=/var/run/secrets/ci.openshift.io/cluster-profile
export AWS_SHARED_CREDENTIALS_FILE=${cluster_profile}/.awscred
export KUBE_SSH_KEY_PATH=${cluster_profile}/ssh-privatekey
make run-ci-e2e-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ref:
as: windows-e2e-operator-test
from: windows-machine-config-operator-test
commands: windows-e2e-operator-test-commands.sh
resources:
requests:
cpu: 1000m
memory: 600Mi
documentation: |-
The Windows Machine Config Operator's end to end test suite

0 comments on commit 812635c

Please sign in to comment.