Support for using Amazon S3 - Cloud Object Storage 73/132173/2
authorPatrikBuhr <patrik.buhr@est.tech>
Mon, 14 Nov 2022 08:00:38 +0000 (09:00 +0100)
committerDan Timoney <dtimoney@att.com>
Tue, 15 Nov 2022 20:57:28 +0000 (20:57 +0000)
Documentation updates.
A bugfix.

Issue-ID: CCSDK-3810
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Change-Id: I47969bb1da370e1b6c2cacb9563f4bf4ca49b989

a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/Policies.java
a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTask.java
docs/guide/developer-guide.rst

index d808b57..09f59ca 100644 (file)
@@ -101,7 +101,7 @@ public class Policies {
         policiesRic.put(policy.getRic().id(), policy.getId(), policy);
         policiesService.put(policy.getOwnerServiceId(), policy.getId(), policy);
         policiesType.put(policy.getType().getId(), policy.getId(), policy);
-        if (this.appConfig.getVardataDirectory() != null && !policy.isTransient()) {
+        if (!policy.isTransient()) {
             store(policy);
         }
     }
index 567bb8d..408a0d5 100644 (file)
@@ -200,9 +200,7 @@ public class RefreshConfigTask {
 
     void addRic(Ric ric) {
         this.rics.put(ric);
-        if (this.appConfig.getVardataDirectory() != null) {
-            this.policies.restoreFromDatabase(ric, this.policyTypes).subscribe();
-        }
+        this.policies.restoreFromDatabase(ric, this.policyTypes).subscribe();
         logger.debug("Added RIC: {}", ric.id());
     }
 
index 5159b6c..c26bf48 100644 (file)
@@ -48,6 +48,7 @@ dependency management tool (see *pom.xml* file at root level) :
 - `Springfox <https://github.com/springfox/springfox>`_ Automated JSON API documentation for APIs built with Spring
 - `Lombok <https://github.com/rzwitserloot/lombok>`_ to generate code, such as getters and setters
 - `Awaitility <https://github.com/awaitility/awaitility>`_ to test asynchronous functionality
+- `S3 <https://mvnrepository.com/artifact/software.amazon.awssdk/s3>`_ Access of Amazon S3 - Cloud Object Storage
 
 To get a complete list of all dependencies, use command "mvn dependency:tree".
 
@@ -77,6 +78,7 @@ The file *./config/application.yaml* is read by the application at startup. It p
  * logging; setting for which information is logged.
  * auth-token; optional authorization token to use for REST call.
  * filepath; the local path to a file used for dynamic configuration (if used). See next chapter.
+ * persistent storage of runtime information. Configuration of A1 policyinstances is stored persistently. The media for this can be either filesystem (a persistent volume) or Amazon S3 - Cloud Object Storage.
 
 For details about the parameters in this file, see documentation in the file.