Fix kong postgres init container storage permissions 24/14324/2
authoraravind.est <aravindhan.a@est.tech>
Thu, 17 Apr 2025 11:30:04 +0000 (12:30 +0100)
committeraravind.est <aravindhan.a@est.tech>
Thu, 17 Apr 2025 11:31:00 +0000 (12:31 +0100)
Postgres container runs for kong fails with the permission issue.
This provides elevated permissions for the init container alone to complete the volume permission changes.

Issue-ID: NONRTRIC-1020
Change-Id: If6313e1ed9b98c26874c8fb767b053d2131dc7a1
Signed-off-by: aravind.est <aravindhan.a@est.tech>
nonrtric/helm/kongstorage/kongvalues.yaml

index c6fff53..a1ca552 100644 (file)
@@ -1,6 +1,6 @@
 
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+#  Copyright (C) 2024-2025 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.
@@ -118,6 +118,9 @@ postgresql:
       postgresql: "5432"
   volumePermissions:
     enabled: true
+    # This provides permission for the initcontainer to set the correct permissions
+    containerSecurityContext:
+      runAsNonRoot: false
   primary:
     persistence:
       existingClaim: kongpvc