-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Active/Active XSite fencing. Resolves keycloak/keycloak#29303
- User alert routing enabled on ROSA clusters - PrometheusRule used to trigger AWS Lambda webhook in the event of a split-brain so that only a single site remains in the global accelerator endpoints - Global Accelerator scripts refactored to use OpenTofu when creating AWS resources - Task created to deploy/undeploy Active/Active - Task created to simulate split-brain scenarios - 'active-active' flag added to GH actions to differentiate between active/passive and active/active deployments Signed-off-by: Ryan Emerson <remerson@redhat.com>
- Loading branch information
1 parent
2403d36
commit 587ceda
Showing
24 changed files
with
682 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
function requiredEnv() { | ||
for ENV in $@; do | ||
if [ -z "${!ENV}" ]; then | ||
echo "${ENV} variable must be set" | ||
exit 1 | ||
fi | ||
done | ||
} | ||
|
||
# Wait for k8s resource to exist. See: https://github.com/kubernetes/kubernetes/issues/83242 | ||
function waitFor() { | ||
xtrace=$(set +o|grep xtrace); set +x | ||
local ns=${1?namespace is required}; shift | ||
local type=${1?type is required}; shift | ||
|
||
echo "Waiting for $type $*" | ||
until oc -n "$ns" get "$type" "$@" -o=jsonpath='{.items[0].metadata.name}' >/dev/null 2>&1; do | ||
echo "Waiting for $type $*" | ||
sleep 1 | ||
done | ||
eval "$xtrace" | ||
} |
Oops, something went wrong.