Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
update task (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsfaMumtaz authored Jan 25, 2024
1 parent 24a96ca commit 32bc3da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stakater-validate-environment/helm/templates/clustertask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ spec:
environment_status=$(oc get environment $environment_name -o jsonpath='{.status}')
# Get Fields to check Environment Reconcilation
condition_type=$(echo $environment_status | jq -r '.resourceStatus.conditions[0].type')
condition_status=$(echo $environment_status | jq -r '.resourceStatus.conditions[0].status')
condition_type=$(echo $environment_status | jq -r '.conditions[0].type')
condition_status=$(echo $environment_status | jq -r '.conditions[0].status')
# Check Environment Reconcilation
if ([ $condition_type == "ReconcileSuccess" ] && [ $condition_status == "True" ]); then
if ([ $condition_type == "Ready" ] && [ $condition_status == "True" ]); then
echo "--Environment Reconciled"
echo " Checking HelmRelease"
Expand Down

0 comments on commit 32bc3da

Please sign in to comment.