diff --git a/gatekeeper-library/apply_gatekeeper_constraints.sh b/gatekeeper-library/apply_gatekeeper_constraints.sh index 3c49462..b99884b 100755 --- a/gatekeeper-library/apply_gatekeeper_constraints.sh +++ b/gatekeeper-library/apply_gatekeeper_constraints.sh @@ -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