[POLICY] Fix file permissions for helm config and cache 88/141588/1
authorsaul.gill <saul.gill@est.tech>
Fri, 25 Jul 2025 13:20:34 +0000 (14:20 +0100)
committersaul.gill <saul.gill@est.tech>
Fri, 25 Jul 2025 13:39:03 +0000 (14:39 +0100)
Issue-ID: POLICY-5424
Change-Id: Ib6e8211b4a8ed50d6a860854c8ab61e799ac631d
Signed-off-by: saul.gill <saul.gill@est.tech>
kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/deployment.yaml

index a97ab22..428460b 100644 (file)
@@ -2,6 +2,7 @@
 #  ============LICENSE_START=======================================================
 #   Copyright (C) 2021-2023 Nordix Foundation.
 #   Modifications Copyright © 2024 Deutsche Telekom
+#   Modifications Copyright © 2025 OpenInfra 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.
@@ -87,6 +88,10 @@ spec:
           - mountPath: /opt/app/policy/clamp/etc/logback.xml
             subPath: logback.xml
             name: ac-k8s-ppnt-config-processed
+          - name: helm-cache
+            mountPath: /home/policy/.cache/helm
+          - name: helm-config
+            mountPath: /home/policy/.config/helm
           resources: {{ include "common.resources" . | nindent 12 }}
         {{- if .Values.nodeSelector }}
         nodeSelector:
@@ -112,4 +117,8 @@ spec:
         - name: logs
           emptyDir:
             sizeLimit: {{ .Values.dirSizes.logDir.sizeLimit }}
+        - name: helm-cache
+          emptyDir: {}
+        - name: helm-config
+          emptyDir: {}
       {{- include "common.imagePullSecrets" . | nindent 6 }}