-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Prow CI Step Enhancement] update install step to support QE e2e test #32647
[Prow CI Step Enhancement] update install step to support QE e2e test #32647
Conversation
4203be2
to
5368841
Compare
The error of |
...estroy-nested-management-cluster/hypershift-aws-destroy-nested-management-cluster-chain.yaml
Show resolved
Hide resolved
@@ -19,8 +19,15 @@ chain: | |||
- name: EXTRA_ARGS | |||
default: "" | |||
documentation: "Extra args to pass to the create cluster aws command" | |||
- name: HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT | |||
default: "false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw I consider hypershift-aws-create-chain.yaml deprecated. There's no semantic difference with hypershift-aws-setup-nested-management-cluster-chain.yaml
which we should rename to just `hypershift-aws-create. Then is up to the workload to chain multiples creates to have nested clusters.
However I'm fine with the change for now and I'll follow up later on with the refactor above.
ci-operator/step-registry/hypershift/aws/create/hypershift-aws-create-chain.yaml
Show resolved
Hide resolved
ci-operator/step-registry/hypershift/aws/destroy/hypershift-aws-destroy-chain.yaml
Show resolved
Hide resolved
5368841
to
6128dd7
Compare
@enxebre Hi, add
This is added to support qe's install workflow, could you help me review again? thanks |
|
||
if [[ $HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT == "true" ]]; then | ||
AWS_GUEST_INFRA_CREDENTIALS_FILE="${CLUSTER_PROFILE_DIR}/.awscred" | ||
BASE_DOMAIN=origin-ci-int-aws.dev.rhcloud.com | ||
if [[ $HYPERSHIFT_BASE_DOMAIN != "qe.devcluster.openshift.com" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please don't default the env variable, keep the logic as before this PR, and then just let the environment variable be authoritative if it was set?
The likes of
AWS_GUEST_INFRA_CREDENTIALS_FILE="/etc/hypershift-ci-jobs-awscreds/credentials"
DEFAULT_BASE_DOMAIN=ci.hypershift.devcluster.openshift.com
if [[ $HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT == "true" ]]; then
AWS_GUEST_INFRA_CREDENTIALS_FILE="${CLUSTER_PROFILE_DIR}/.awscred"
DEFAULT_BASE_DOMAIN=origin-ci-int-aws.dev.rhcloud.com
fi
DOMAIN :=${HYPERSHIFT_BASE_DOMAIN:-$DEFAULT_BASE_DOMAIN}
That way the behaviour is generic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, thanks for your comment, good idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it assumes HYPERSHIFT_BASE_DOMAIN
has the highest weight. If it is set in jobs, HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT
won't work any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then for existing chains, we need remove all existing env HYPERSHIFT_BASE_DOMAIN
with default value ? so that it won't affect HYPERSHIFT_GUEST_INFRA_OCP_ACCOUNT
6128dd7
to
5abe597
Compare
@enxebre could you help me review again? |
looks to me overall now. CI is currently broken pending openshift/hypershift#1773 |
/retest |
hi @enxebre 1773 merge, could you help review again when you free? thanks |
/test pj-rehearse |
/hold |
@enxebre Could we merge this PR? As it's a blocker for QE to continue run e2e test for openshift 4.12 release. |
@LiangquanLi930: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@csrwng @Xia-Zhao-rh Could you help to review it also? |
/hold cancel |
/lgtm |
/hold |
/label tide/merge-method-squash |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, enxebre, LiangquanLi930 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, enxebre, LiangquanLi930 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
extended aws together with PR
For QE e2e test, we need to use QE's quota, so we should support dynamic switching of
--aws-creds
and--base-domain