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

Update validate env task #264

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading