aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUbuntu <dm00536893@techmahindra.com>2024-11-14 15:23:24 +0100
committerUbuntu <dm00536893@techmahindra.com>2024-11-14 15:23:40 +0100
commit4a47d6ff832ba6df66eaabe9acea2f0e37ae18b3 (patch)
treeef83bbf4d91f8656032f432b2420e2eeb4629e41
parenta09fb4761658ac818e54e7095d7b0b6ad35324bb (diff)
opa policy type added
Issue-ID: POLICY-5159 Change-Id: I6f052e5d8baca528a9f67223a0e473ed2fcb1eaf Signed-off-by: Ubuntu <dm00536893@techmahindra.com>
-rw-r--r--models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml b/models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml
new file mode 100644
index 000000000..b8a052174
--- /dev/null
+++ b/models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml
@@ -0,0 +1,20 @@
+tosca_definitions_version: tosca_simple_yaml_1_1_0
+policy_types:
+ onap.policies.Native:
+ derived_from: tosca.policies.Root
+ description: a base policy type for all native PDP policies
+ version: 1.0.0
+ name: onap.policies.Native
+ onap.policies.native.opa:
+ derived_from: onap.policies.Native
+ version: 1.0.0
+ name: onap.policies.native.opa
+ description: a policy type for native opa policies
+ properties:
+ policy:
+ type: string
+ type_version: 0.0.0
+ description: The rego PolicySet or Policy
+ required: true
+ metadata:
+ encoding: Base64