Skip to content

Commit

Permalink
policyengine/examples: Fix JSONs to support CRD mode (#474)
Browse files Browse the repository at this point in the history
Update JSONs' policy to support policy CRD.
Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo authored Apr 1, 2024
1 parent 68a7523 commit 806e60f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion pkg/policyengine/examples/allowAll.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "allow-all",
"kind": "AccessPolicy",
"apiVersion": "clusterlink.net/v1alpha1",
"metadata": {
"name": "allow-all",
"namespace": "default"
},
"spec": {
"action": "allow",
"from": [
Expand Down
7 changes: 6 additions & 1 deletion pkg/policyengine/examples/allowToReviews.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "allow-to-reviews",
"kind": "AccessPolicy",
"apiVersion": "clusterlink.net/v1alpha1",
"metadata": {
"name": "allow-to-reviews",
"namespace": "default"
},
"spec": {
"action": "allow",
"from": [
Expand Down
7 changes: 6 additions & 1 deletion pkg/policyengine/examples/deny_from_gw1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"name": "deny-from-gw1",
"kind": "AccessPolicy",
"apiVersion": "clusterlink.net/v1alpha1",
"metadata": {
"name": "deny-from-gw1",
"namespace": "default"
},
"spec": {
"action": "deny",
"from": [
Expand Down

0 comments on commit 806e60f

Please sign in to comment.