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
28 changes: 18 additions & 10 deletions ci-operator/config/openshift/hive/openshift-hive-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,28 @@ tests:
cpu: 100m
workflow: generic-claim
- as: e2e-pool
cluster_claim:
architecture: amd64
as: unused
cloud: aws
labels:
region: us-east-1
owner: openshift-ci
product: ocp
timeout: 1h0m0s
version: "4.12"
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
cluster_profile: aws-2
test:
- as: test
cli: latest
commands: |
# Creds for the `ci` user in the hive-team cluster
export AWS_ACCESS_KEY_ID=$(cat /tmp/hivesecret/hive-aws-creds/AWS_ACCESS_KEY_ID)
export AWS_SECRET_ACCESS_KEY=$(cat /tmp/hivesecret/hive-aws-creds/AWS_SECRET_ACCESS_KEY)
export PULL_SECRET_FILE=/tmp/consolidated-pull-secret
# The pull secret on the right gives us access to the release image.
# The one on the left gives us access to the images it points to.
jq -s '.[0] * .[1]' /tmp/hivesecret/pull-secret/.dockerconfigjson /tmp/secret/pull-secret-build-farm.json > $PULL_SECRET_FILE
# TODO: Get a CI-owned account: DPTP-2348
export AWS_ACCESS_KEY_ID=$(cat /tmp/secret/hive-aws-creds/AWS_ACCESS_KEY_ID)
export AWS_SECRET_ACCESS_KEY=$(cat /tmp/secret/hive-aws-creds/AWS_SECRET_ACCESS_KEY)
# Override default location for pull secret
export PULL_SECRET_FILE=/tmp/secret/pull-secret/.dockerconfigjson
# Our AWS account is set up with this domain:
export BASE_DOMAIN=new-installer.openshift.com
# Configure a cluster name that our monitor/reaper can use to
Expand All @@ -152,10 +160,10 @@ tests:
export USE_MANAGED_DNS=false
CLOUD=aws make test-e2e-pool
credentials:
- mount_path: /tmp/hivesecret/hive-aws-creds
- mount_path: /tmp/secret/hive-aws-creds
name: hive-aws-creds
namespace: test-credentials
- mount_path: /tmp/hivesecret/pull-secret
- mount_path: /tmp/secret/pull-secret
name: ci-pull-credentials
namespace: test-credentials
dependencies:
Expand All @@ -168,7 +176,7 @@ tests:
resources:
requests:
cpu: 100m
workflow: hypershift-hostedcluster-workflow
workflow: generic-claim
- as: e2e-gcp
optional: true
run_if_changed: gcp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,12 @@ presubmits:
branches:
- ^master$
- ^master-
cluster: build05
cluster: build02
context: ci/prow/e2e-pool
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: aws-2
ci.openshift.io/generator: prowgen
job-release: "4.13"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
Expand All @@ -304,11 +302,10 @@ presubmits:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --hive-kubeconfig=/secrets/hive-hive-credentials/kubeconfig
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --secret-dir=/usr/local/e2e-pool-cluster-profile
- --target=e2e-pool
command:
- ci-operator
Expand All @@ -319,17 +316,15 @@ presubmits:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /usr/local/e2e-pool-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/hive-hive-credentials
name: hive-hive-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
Expand All @@ -338,18 +333,12 @@ presubmits:
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: cluster-profile
- name: hive-hive-credentials
secret:
secretName: cluster-secrets-aws-2
secretName: hive-hive-credentials
- name: pull-secret
secret:
secretName: registry-pull-credentials
Expand All @@ -358,7 +347,7 @@ presubmits:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-pool,?($|\s.*)
- agent: kubernetes
always_run: true
always_run: false
branches:
- ^master$
- ^master-
Expand All @@ -373,6 +362,7 @@ presubmits:
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-hive-master-images
rerun_command: /test images
skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
spec:
containers:
- args:
Expand Down