Skip to content

Commit

Permalink
server-2047-flyway-migration-job | suffle post check
Browse files Browse the repository at this point in the history
  • Loading branch information
atulsingh0 committed Aug 17, 2022
1 parent 619833d commit 71e2882
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kots-exporter/kots-exporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@ check_prereq(){
if ! command -v yq -V &> /dev/null
then
error_exit "yq could not be found."
fi

# check if secret/regcred exists
if ! kubectl get secret/regcred -n "$namespace" -o name > /dev/null 2>&1
then
error_exit "Secret regcred does not exist in k8s namespace - $namespace"
fi
fi
}

check_postreq(){
Expand All @@ -84,6 +78,12 @@ check_postreq(){
then
error_exit "Namespace $namespace does not exist in k8s cluster."
fi

# check if secret/regcred exists
if ! kubectl get secret/regcred -n "$namespace" -o name > /dev/null 2>&1
then
error_exit "Secret regcred does not exist in k8s namespace - $namespace"
fi
}

check_required_args(){
Expand Down

0 comments on commit 71e2882

Please sign in to comment.