-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom Domain Input; OKE Status check; Optional Custom input before h…
…elm install (#98) Custom Domain Input; OKE Status check; Optional Custom input before helm install
- Loading branch information
1 parent
da250d7
commit e1662a5
Showing
25 changed files
with
285 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
set -e | ||
curl -H "Authorization: Bearer Oracle" -sL http://169.254.169.254/opc/v2/instance/ | jq .regionInfo | ||
# example output => | ||
# echo '{ | ||
# "realmDomainComponent": "oraclecloud.com", | ||
# "realmKey": "oc1", | ||
# "regionIdentifier": "us-phoenix-1", | ||
# "regionKey": "PHX" | ||
# }' |
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,50 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
############################################################ | ||
## | ||
## Check the lifecycle-state of OKE cluster [$OKE_OCID] | ||
## every $CHECK_INTERVAL seconds | ||
## untill | ||
## - lifecycle state is "ACTIVE" | ||
## or | ||
## - time limit $WAIT_TIME is breached | ||
## | ||
## exit with status 0, iff lifecycle-state is "ACTIVE", | ||
## otherwise exit with status 1 | ||
## | ||
############################################################ | ||
|
||
# Exit on error | ||
set -e | ||
|
||
# Inputs from ENV is preferred over CLI | ||
if [ -z "${WAIT_TIME}" ]; then WAIT_TIME=$1; fi | ||
if [ -z "${CHECK_INTERVAL}" ]; then CHECK_INTERVAL=$2; fi | ||
if [ -z "${OKE_OCID}" ]; then OKE_OCID=$3; fi | ||
|
||
timer=0 | ||
|
||
while true; | ||
do | ||
oke_status=$(oci ce cluster get --cluster-id "$OKE_OCID" --query 'data."lifecycle-state"' --raw-output) | ||
echo -e "OKE status: $oke_status" | ||
|
||
if [[ "$oke_status" == "ACTIVE" ]]; then | ||
echo -e "Returning with success." | ||
break; | ||
fi | ||
|
||
echo -e "Next check scheduled after seconds: $CHECK_INTERVAL" | ||
sleep "$CHECK_INTERVAL" | ||
|
||
(( timer = timer + CHECK_INTERVAL )) | ||
if [ $timer -ge "$WAIT_TIME" ]; then | ||
echo -e "Timeout limit breached: $WAIT_TIME" | ||
echo -e "ERROR: OKE status is not ACTIVE." | ||
exit 1 | ||
fi | ||
done | ||
|
||
exit 0 |
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,69 @@ | ||
|
||
# source: https://github.com/oracle/oci-ruby-sdk/blob/v2.21.1/lib/oci/regions_definitions.rb | ||
# ruby SDK version: 2.21.1 | ||
locals { | ||
ruby_sdk_supported_regions = [ | ||
"ap-chuncheon-1", | ||
"ap-hyderabad-1", | ||
"ap-melbourne-1", | ||
"ap-mumbai-1", | ||
"ap-osaka-1", | ||
"ap-seoul-1", | ||
"ap-sydney-1", | ||
"ap-tokyo-1", | ||
"ca-montreal-1", | ||
"ca-toronto-1", | ||
"eu-amsterdam-1", | ||
"eu-frankfurt-1", | ||
"eu-zurich-1", | ||
"me-jeddah-1", | ||
"me-dubai-1", | ||
"sa-saopaulo-1", | ||
"uk-cardiff-1", | ||
"uk-london-1", | ||
"us-ashburn-1", | ||
"us-phoenix-1", | ||
"us-sanjose-1", | ||
"sa-vinhedo-1", | ||
"sa-santiago-1", | ||
"il-jerusalem-1", | ||
"eu-marseille-1", | ||
"ap-singapore-1", | ||
"me-abudhabi-1", | ||
"eu-milan-1", | ||
"eu-stockholm-1", | ||
"af-johannesburg-1", | ||
"eu-paris-1", | ||
"mx-queretaro-1", | ||
"eu-madrid-1", | ||
"us-chicago-1", | ||
"mx-monterrey-1", | ||
"us-saltlake-2", | ||
"sa-bogota-1", | ||
"sa-valparaiso-1", | ||
"us-langley-1", | ||
"us-luke-1", | ||
"us-gov-ashburn-1", | ||
"us-gov-chicago-1", | ||
"us-gov-phoenix-1", | ||
"uk-gov-london-1", | ||
"uk-gov-cardiff-1", | ||
"ap-chiyoda-1", | ||
"ap-ibaraki-1", | ||
"me-dcc-muscat-1", | ||
"ap-dcc-canberra-1", | ||
"eu-dcc-milan-1", | ||
"eu-dcc-milan-2", | ||
"eu-dcc-dublin-2", | ||
"eu-dcc-rating-2", | ||
"eu-dcc-rating-1", | ||
"eu-dcc-dublin-1", | ||
"ap-dcc-gazipur-1", | ||
"eu-madrid-2", | ||
"eu-frankfurt-2", | ||
"eu-jovanovac-1", | ||
"me-dcc-doha-1", | ||
"eu-dcc-zurich-1", | ||
"me-abudhabi-3" | ||
] | ||
} |
Oops, something went wrong.