opa policy type added 80/139280/1
authorUbuntu <dm00536893@techmahindra.com>
Thu, 14 Nov 2024 14:23:24 +0000 (15:23 +0100)
committerUbuntu <dm00536893@techmahindra.com>
Thu, 14 Nov 2024 14:23:40 +0000 (15:23 +0100)
Issue-ID: POLICY-5159
Change-Id: I6f052e5d8baca528a9f67223a0e473ed2fcb1eaf
Signed-off-by: Ubuntu <dm00536893@techmahindra.com>
models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml [new file with mode: 0644]

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 (file)
index 0000000..b8a0521
--- /dev/null
@@ -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