diff --git a/pkg/policyengine/examples/allowAll.json b/pkg/policyengine/examples/allowAll.json index 355f1956..28f2205f 100644 --- a/pkg/policyengine/examples/allowAll.json +++ b/pkg/policyengine/examples/allowAll.json @@ -1,5 +1,10 @@ { - "name": "allow-all", + "kind": "AccessPolicy", + "apiVersion": "clusterlink.net/v1alpha1", + "metadata": { + "name": "allow-all", + "namespace": "default" + }, "spec": { "action": "allow", "from": [ diff --git a/pkg/policyengine/examples/allowToReviews.json b/pkg/policyengine/examples/allowToReviews.json index f533633d..f813d9b9 100644 --- a/pkg/policyengine/examples/allowToReviews.json +++ b/pkg/policyengine/examples/allowToReviews.json @@ -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": [ diff --git a/pkg/policyengine/examples/deny_from_gw1.json b/pkg/policyengine/examples/deny_from_gw1.json index 51712f81..402c13cb 100644 --- a/pkg/policyengine/examples/deny_from_gw1.json +++ b/pkg/policyengine/examples/deny_from_gw1.json @@ -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": [