Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to deploy CHE behind proxy #16497

Merged
merged 2 commits into from
Mar 5, 2021
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 @@ -90,6 +90,35 @@ tests:
cpu: 100m
memory: 200Mi
workflow: optional-operators-ci-aws
- as: che-operator-proxy-deployment
steps:
cluster_profile: aws
env:
TEST_SKIPS: ""
test:
- as: che-behind-proxy
cli: latest
commands: |
echo ${TEST_SKIPS}

echo -e "Kubernetes proxy object:"
oc get proxy/cluster -o yaml

echo -e "[INFO] Test script content"
cat .ci/oci-proxy.sh

/bin/bash .ci/oci-proxy.sh
dependencies:
- env: CI_CHE_OPERATOR_IMAGE
name: che-operator-image
env:
- name: TEST_SKIPS
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: openshift-e2e-aws-proxy
zz_generated_metadata:
branch: master
org: eclipse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,74 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v7-che-operator-olm-nightly-deployment,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: build02
context: ci/prow/v7-che-operator-proxy-deployment
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
ci-operator.openshift.io/variant: v7
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-eclipse-che-operator-master-v7-che-operator-proxy-deployment
rerun_command: /test v7-che-operator-proxy-deployment
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/usr/local/che-operator-proxy-deployment-cluster-profile
- --target=che-operator-proxy-deployment
- --variant=v7
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /usr/local/che-operator-proxy-deployment-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-aws
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v7-che-operator-proxy-deployment,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down