Skip to content

Commit

Permalink
upstream merge conflict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashkhileri committed Jul 19, 2023
1 parent bcc0ca8 commit 0a8864e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bootstrap-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
# Slashes have to be escaped as those variables are given to sed as a param
SPI_API_SERVER: "https:\\/\\/api-toolchain-host-operator.apps.hac-devsandbox.5unc.p1.openshiftapps.com"
HAS_DEFAULT_IMAGE_REPOSITORY: "quay.io\\/hacdev\\/build_service"
BROKER: true
run: |
# Setup GIT access
git config --global user.name 'Katka92'
Expand All @@ -58,7 +59,7 @@ jobs:
sed -i "s/IMAGE_CONTROLLER_QUAY_TOKEN=.*/IMAGE_CONTROLLER_QUAY_TOKEN=${IMAGE_CONTROLLER_QUAY_TOKEN}/g" hack/preview.env
# Bootstrap the cluster
hack/bootstrap-cluster.sh preview --toolchain --keycloak --broker
hack/bootstrap-cluster.sh preview --toolchain --keycloak
# Set the docker secret to push HAS images to quay if doesn't exist yet
if [[ ! $(oc get secrets -n build-templates | grep redhat-appstudio-user-workload) ]]; then
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ jobs:
git fetch upstream
git merge upstream/main
git push origin main
- name: Slack alert on merge failure
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
CHANNEL_ID: "C04U7TA1BT8" # forum-rhtap-test-execution-alerts
run: |
curl -H "Authorization: Bearer ${SLACK_BOT_TOKEN}" -d "text=:alert-siren: infra-deployments upstream merge job failed" -d "channel=${CHANNEL_ID}" -X POST https://slack.com/api/chat.postMessage
11 changes: 3 additions & 8 deletions hack/bootstrap-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..

main() {
local mode keycloak toolchain obo broker
local mode keycloak toolchain obo
while [[ $# -gt 0 ]]; do
key=$1
case $key in
Expand All @@ -15,10 +15,6 @@ main() {
keycloak="--keycloak"
shift
;;
--broker | -b)
broker="--broker"
shift
;;
--obo | -o)
obo="--obo"
shift
Expand Down Expand Up @@ -60,7 +56,7 @@ main() {
fi
;;
"preview")
$ROOT/hack/preview.sh $toolchain $keycloak $obo $broker
$ROOT/hack/preview.sh $toolchain $keycloak $obo
;;
esac
}
Expand All @@ -71,10 +67,9 @@ print_help() {
echo " -t, --toolchain (only in preview mode) Install toolchain operators"
echo " -kc, --keycloak (only in preview mode) Configure the toolchain operator to use keycloak deployed on the cluster"
echo " -o, --obo (only in preview mode) Install Observability operator and Prometheus instance for federation"
echo " -b, --broker (only in preview mode) Install Pact Broker"
echo " -h, --help Show this help message and exit"
echo
echo "Example usage: \`$0 preview --toolchain --keycloak --obo --broker"
echo "Example usage: \`$0 preview --toolchain --keycloak --obo"
}

if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
Expand Down
7 changes: 1 addition & 6 deletions hack/preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ function print_help() {
echo " --toolchain (only in preview mode) Install toolchain operators"
echo " --keycloak (only in preview mode) Configure the toolchain operator to use keycloak deployed on the cluster"
echo " --obo (only in preview mode) Install Observability operator and Prometheus instance for federation"
echo " --broker (only in preview mode) Install Pact Broker"
echo
echo "Example usage: \`$0 --toolchain --keycloak --broker"
echo "Example usage: \`$0 --toolchain --keycloak --obo"
}
TOOLCHAIN=false
KEYCLOAK=false
Expand All @@ -29,10 +28,6 @@ while [[ $# -gt 0 ]]; do
KEYCLOAK=true
shift
;;
--broker)
BROKER=true
shift
;;
--obo)
OBO=true
shift
Expand Down

0 comments on commit 0a8864e

Please sign in to comment.