Add group and user details for a1pms volume mount
Volume mount ownership can be passed as User and Group uid.
This needs to be in sync with the container build arguments.
Issue-ID: NONRTRIC-1025
Change-Id: I32031736d83cc92691e8194b5ff46635efc2f6b4
Signed-off-by: aravind.est <aravindhan.a@est.tech>
diff --git a/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml b/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
index 24f168d..2ccbb75 100644
--- a/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
+++ b/nonrtric/RECIPE_EXAMPLE/example_recipe.yaml
@@ -122,6 +122,10 @@
storageClassName: pms-storage
ingress:
enabled: true
+ #Volumepermissions needs to align with the container build arguments
+ volumepermissions:
+ groupid: 120957
+ userid: 120957
# A1 Controller may take few more minutes to start. Increase the initialDelaySeconds in liveness to avoid container restart.
a1controller:
diff --git a/nonrtric/helm/policymanagementservice/templates/statefulset.yaml b/nonrtric/helm/policymanagementservice/templates/statefulset.yaml
index a279067..fd4a34a 100644
--- a/nonrtric/helm/policymanagementservice/templates/statefulset.yaml
+++ b/nonrtric/helm/policymanagementservice/templates/statefulset.yaml
@@ -53,6 +53,7 @@
cp /etc/app/policy-management-service/application_configuration_json_initial/application_configuration.json $FILE;
fi;
chmod 666 $FILE;
+ chown {{ .Values.policymanagementservice.volumepermissions.groupid }}:{{ .Values.policymanagementservice.volumepermissions.userid }} -R /var/policy-management-service/;
volumeMounts:
- name: {{ include "common.name.policymanagementservice" . }}-vardata
mountPath: "/var/policy-management-service"
diff --git a/nonrtric/helm/policymanagementservice/values.yaml b/nonrtric/helm/policymanagementservice/values.yaml
index 4e24f8c..7191f1d 100644
--- a/nonrtric/helm/policymanagementservice/values.yaml
+++ b/nonrtric/helm/policymanagementservice/values.yaml
@@ -1,6 +1,6 @@
# ============LICENSE_START===============================================
# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
-# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -44,3 +44,7 @@
storageClassName: standard
ingress:
enabled: false
+ #Volumepermissions needs to align with the container build arguments
+ volumepermissions:
+ groupid: 120957
+ userid: 120957
\ No newline at end of file