Skip to content

Commit

Permalink
fix: reorder jobs and wait longer for cms
Browse files Browse the repository at this point in the history
Signed-off-by: ali.alkhalidi <[email protected]>
  • Loading branch information
alialkhalidi committed Jun 1, 2021
1 parent 700c3d4 commit d63cb8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 10 additions & 10 deletions k8s/jobs/kustomize/jobs/overlays/common/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ configMapGenerator:
name: governance-vcs-add-profiles-script

resources:
- adapter-issuer/add-profiles.yml
- hub-auth/hydra/hydra-create-client.yml
- cms/strapi/user-data.yml
- cms/oathkeeper/role.yml
- cms/oathkeeper/rolebinding.yml
- cms/oathkeeper/process-template.yml
- vcs/issuer/add-profiles.yml
- vcs/verifier/add-profiles.yml
- vcs/holder/add-profiles.yml
- vcs/governance/add-profiles.yml
- rp/role.yml
- rp/rolebinding.yml
- rp/register-tenant.yml
- hub-auth/hydra/hydra-create-client.yml
- adapter-issuer/add-profiles.yml
- login-consent/hydra/hydra-create-client.yml
- issuer/role.yml
- issuer/rolebinding.yml
- issuer/register-tenant.yml
- rp/role.yml
- rp/rolebinding.yml
- rp/register-tenant.yml
- ace-rp/create-profiles.yml
- login-consent/hydra/hydra-create-client.yml
- cms/strapi/user-data.yml
- cms/oathkeeper/role.yml
- cms/oathkeeper/rolebinding.yml
- cms/oathkeeper/process-template.yml

transformers:
- sedtransform.yml
Expand Down
8 changes: 6 additions & 2 deletions k8s/scripts/deploy_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ NONE=$(tput sgr0)
healthCheck() {
sleep 2
n=0
maxAttempts=200
maxAttempts=200
if [ "" != "$4" ]
then
maxAttempts=$4
fi
echo "running health check : app=$1 url=$2 timeout=$maxAttempts seconds"
until [ $n -ge $maxAttempts ]
do
Expand Down Expand Up @@ -111,5 +115,5 @@ done
## Late health checks
component=LATE
for url in ${HEALTCHECK_URL[$component]}; do
healthCheck $component "$url" ${HEALTHCHECK_CODE["$url"]}
healthCheck $component "$url" ${HEALTHCHECK_CODE["$url"]} 300
done

0 comments on commit d63cb8e

Please sign in to comment.