Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resubmission of PR 50929 with fixes (#51393)
Signed-off-by: Feilian Xie <fxie@redhat.com>
- Loading branch information
Showing
31 changed files
with
564 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ci-operator/step-registry/cucushift/hypershift-extended/metadata/OWNERS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
approvers: | ||
- LiangquanLi930 | ||
- heliubj18 | ||
- fxierh | ||
reviewers: | ||
- LiangquanLi930 | ||
- heliubj18 | ||
- fxierh |
24 changes: 24 additions & 0 deletions
24
...cucushift/hypershift-extended/metadata/cucushift-hypershift-extended-metadata-commands.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -u | ||
set -x | ||
set -o pipefail | ||
|
||
export AWS_SHARED_CREDENTIALS_FILE="${CLUSTER_PROFILE_DIR}/.awscred" | ||
REGION=${LEASED_RESOURCE} | ||
|
||
vpc_id=$(oc get hc -A -o jsonpath='{.items[0].spec.platform.aws.cloudProviderConfig.vpc}') | ||
infra_id="$(oc get hc -A -o jsonpath='{.items[0].spec.infraID}')" | ||
public_subnet=$(aws --region "${REGION}" ec2 describe-subnets --filters "Name=tag:kubernetes.io/cluster/${infra_id},Values=owned" "Name=tag:Name,Values=*public*" --query 'Subnets[0].SubnetId' --output text) | ||
|
||
if [[ -f "${SHARED_DIR}/vpc_id" ]]; then | ||
echo "Error: The file ${SHARED_DIR}/vpc_id already exists. Operation aborted to prevent overwriting." | ||
exit 1 | ||
fi | ||
if [[ -f "${SHARED_DIR}/public_subnet_ids" ]]; then | ||
echo "Error: The file ${SHARED_DIR}/public_subnet_ids already exists. Operation aborted to prevent overwriting." | ||
exit 1 | ||
fi | ||
echo "$vpc_id" > "${SHARED_DIR}/vpc_id" | ||
echo "- $public_subnet" > "${SHARED_DIR}/public_subnet_ids" |
Oops, something went wrong.