Skip to content

Commit

Permalink
Add GPM to release notes adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbarrera92 committed Dec 30, 2020
1 parent 8e8bd12 commit af58790
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/releases/v1.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Continue reading the [Changelog](#changelog) to discover them:
## Changelog

- Update OPA Gatekeeper version from: 3.1.1 to [3.2.2](https://github.com/open-policy-agent/gatekeeper/releases/tag/v3.2.2)
- Include Gatekeeper Policy Manager, GPM, from our amazing @ralgozino. [0.4.0](https://github.com/sighupio/gatekeeper-policy-manager/releases/tag/v0.4.0).
- Adds `excludeIstio` flag to:
- `K8sLivenessProbe`
- `K8sReadinessProbe`
Expand Down
21 changes: 21 additions & 0 deletions katalog/tests/gatekeeper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ set -o pipefail
[[ "$status" -eq 0 ]]
}

@test "Deploy Gatekeeper Policy Manager" {
info
deploy() {
kaction katalog/gatekeeper/gpm apply
}
loop_it deploy 30 10
status=${loop_it_result}
[[ "$status" -eq 0 ]]
}

@test "Wait for Gatekeeper Policy Manager" {
info
test(){
readyReplicas=$(kubectl get deploy gatekeeper-policy-manager -n gatekeeper-system -o jsonpath="{.status.readyReplicas}")
if [ "${readyReplicas}" != "1" ]; then return 1; fi
}
loop_it test 30 2
status=${loop_it_result}
[[ "$status" -eq 0 ]]
}

@test "Wait to apply all rules" {
info
sleep 120
Expand Down

0 comments on commit af58790

Please sign in to comment.