Skip to content

Commit

Permalink
make script more robust with a sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Knappek committed Jun 11, 2021
1 parent 4b0414d commit 7378c44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gatekeeper-library/apply_gatekeeper_constraints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -eux

kustomize build library/library/general | kubectl apply -n styra-system -f -

# wait a couple of seconds for all the constraint kinds to become ready
sleep 4

constraints=$(find library/library/general -name constraint.yaml)

for c in $constraints
Expand Down

0 comments on commit 7378c44

Please sign in to comment.