Skip to content

Commit d9deea0

Browse files
Merge pull request openshift#15684 from kpouget/presubmit-hooks
Test OperatorHub & Master on Presubmit hooks
2 parents 985e3f6 + e76ba34 commit d9deea0

File tree

3 files changed

+25
-86
lines changed

3 files changed

+25
-86
lines changed

ci-operator/config/openshift-psap/ci-artifacts/openshift-psap-ci-artifacts-master.yaml

+25-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tests:
2828
steps:
2929
cluster_profile: aws
3030
test:
31-
- as: nightly
31+
- as: presubmit-operatorhub
3232
cli: latest
3333
commands: run gpu-ci
3434
credentials:
@@ -40,6 +40,30 @@ tests:
4040
requests:
4141
cpu: 2000m
4242
memory: 2Gi
43+
- as: presubmit-operatorhub-cleanup
44+
cli: latest
45+
commands: run gpu-ci-undeploy
46+
credentials:
47+
- mount_path: /var/run/psap-entitlement-secret
48+
name: psap-entitlement-secret
49+
namespace: test-credentials
50+
from: ci-artifacts
51+
resources:
52+
requests:
53+
cpu: 2000m
54+
memory: 2Gi
55+
- as: presubmit-master
56+
cli: latest
57+
commands: run gpu-commit-ci
58+
credentials:
59+
- mount_path: /var/run/psap-entitlement-secret
60+
name: psap-entitlement-secret
61+
namespace: test-credentials
62+
from: ci-artifacts
63+
resources:
64+
requests:
65+
cpu: 2000m
66+
memory: 2Gi
4367
workflow: ipi-aws
4468
zz_generated_metadata:
4569
branch: master

ci-operator/config/openshift-psap/ci-artifacts/openshift-psap-ci-artifacts-release-next.yaml

-18
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,6 @@ tests:
4242
cpu: 2000m
4343
memory: 2Gi
4444
workflow: ipi-aws
45-
- artifact_dir: /tmp/artifacts
46-
as: gpu-operator-e2e-presubmit
47-
steps:
48-
cluster_profile: aws
49-
test:
50-
- as: nightly
51-
cli: latest
52-
commands: run gpu-commit-ci
53-
credentials:
54-
- mount_path: /var/run/psap-entitlement-secret
55-
name: psap-entitlement-secret
56-
namespace: test-credentials
57-
from: ci-artifacts
58-
resources:
59-
requests:
60-
cpu: 2000m
61-
memory: 2Gi
62-
workflow: ipi-aws
6345
zz_generated_metadata:
6446
branch: release-next
6547
org: openshift-psap

ci-operator/jobs/openshift-psap/ci-artifacts/openshift-psap-ci-artifacts-release-next-presubmits.yaml

-67
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,5 @@
11
presubmits:
22
openshift-psap/ci-artifacts:
3-
- agent: kubernetes
4-
always_run: true
5-
branches:
6-
- release-next
7-
cluster: build01
8-
context: ci/prow/gpu-operator-e2e-presubmit
9-
decorate: true
10-
decoration_config:
11-
skip_cloning: true
12-
labels:
13-
ci-operator.openshift.io/prowgen-controlled: "true"
14-
pj-rehearse.openshift.io/can-be-rehearsed: "true"
15-
name: pull-ci-openshift-psap-ci-artifacts-release-next-gpu-operator-e2e-presubmit
16-
rerun_command: /test gpu-operator-e2e-presubmit
17-
spec:
18-
containers:
19-
- args:
20-
- --gcs-upload-secret=/secrets/gcs/service-account.json
21-
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
22-
- --lease-server-password-file=/etc/boskos/password
23-
- --report-password-file=/etc/report/password.txt
24-
- --report-username=ci
25-
- --secret-dir=/usr/local/gpu-operator-e2e-presubmit-cluster-profile
26-
- --target=gpu-operator-e2e-presubmit
27-
command:
28-
- ci-operator
29-
image: ci-operator:latest
30-
imagePullPolicy: Always
31-
name: ""
32-
resources:
33-
requests:
34-
cpu: 10m
35-
volumeMounts:
36-
- mountPath: /etc/boskos
37-
name: boskos
38-
readOnly: true
39-
- mountPath: /usr/local/gpu-operator-e2e-presubmit-cluster-profile
40-
name: cluster-profile
41-
- mountPath: /secrets/gcs
42-
name: gcs-credentials
43-
readOnly: true
44-
- mountPath: /etc/pull-secret
45-
name: pull-secret
46-
readOnly: true
47-
- mountPath: /etc/report
48-
name: result-aggregator
49-
readOnly: true
50-
serviceAccountName: ci-operator
51-
volumes:
52-
- name: boskos
53-
secret:
54-
items:
55-
- key: password
56-
path: password
57-
secretName: boskos-credentials
58-
- name: cluster-profile
59-
projected:
60-
sources:
61-
- secret:
62-
name: cluster-secrets-aws
63-
- name: pull-secret
64-
secret:
65-
secretName: registry-pull-credentials
66-
- name: result-aggregator
67-
secret:
68-
secretName: result-aggregator
69-
trigger: (?m)^/test( | .* )gpu-operator-e2e-presubmit,?($|\s.*)
703
- agent: kubernetes
714
always_run: true
725
branches:

0 commit comments

Comments
 (0)