Skip to content

Commit

Permalink
fix known automation problem from the ci automation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassuedbroecker committed Jun 3, 2022
1 parent c0cc0e9 commit 50266e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/demo-kubernetes-operator-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function configureCR_SimpleMicroservice () {
function createOLMApplicationOperatorYAMLs () {
CATALOG_NAME="$REGISTRY/$ORG/$IMAGE_APPLICATION_OPERATOR_CATALOG"
sed "s+APPLICATION_CATALOG_IMAGE+$CATALOG_NAME+g" $APPLICATION_TEMPLATE_FOLDER/kubernetes-application-catalogsource-TEMPLATE.yaml > $ROOT_FOLDER/scripts/kubernetes-application-catalogsource.yaml
cp -nf $DATABASE_TEMPLATE_FOLDER/kubernetes-application-subscription-TEMPLATE.yaml $ROOT_FOLDER/scripts/kubernetes-application-subscription.yaml
cp -nf $APPLICATION_TEMPLATE_FOLDER/kubernetes-application-subscription-TEMPLATE.yaml $ROOT_FOLDER/scripts/kubernetes-application-subscription.yaml
}

function deployApplicationOperatorOLM () {
Expand Down
6 changes: 5 additions & 1 deletion scripts/demo-openshift-operator-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ function deployApplicationOperatorOLM () {
do
FIND=$i
STATUS_CHECK=$(kubectl get pods -n $namespace | grep "$FIND" | awk '{print $3;}' | sed 's/"//g' | sed 's/,//g')
echo "Status: $STATUS_CHECK"
echo "*** Status: $STATUS_CHECK"
echo "*** Get pods $namespace"
kubectl get pods -n $namespace
echo "*** Get applications in $namespace"
kubectl get application -n $namespace
STATUS_VERIFICATION=$(echo "$STATUS_CHECK" | grep $STATUS_SUCCESS)
if [ "$STATUS_VERIFICATION" = "$STATUS_SUCCESS" ]; then
echo "$(date +'%F %H:%M:%S') Status: $FIND is Ready"
Expand Down

0 comments on commit 50266e4

Please sign in to comment.