RIC-826: Provide support for xapp_name also in the xapp descriptor
[ric-plt/appmgr.git] / xapp_orchestrater / dev / xapp_onboarder / xapp_onboarder / resources / xapp-std / templates / deployment.yaml
index 3c4c052..0a622f3 100644 (file)
@@ -55,12 +55,14 @@ spec:
         - name: config-volume
           configMap:
             name: {{ include "ricxapp.configmapname" . }}-appconfig
+        {{- if .Values.controls }}
         {{- if .Values.controls.fileStorage }}
         - name: diskwriter
           hostPath: 
             path: {{ .Values.storage.mountPath }}
             type: DirectoryOrCreate
         {{- end }}
+        {{- end }}
       containers:
 {{- $containers := .Values.containers }}
 {{- $ports := .Values.messaging.ports }}
@@ -106,10 +108,12 @@ spec:
           volumeMounts:
             - name: config-volume
               mountPath: {{ .Values.appconfig.path }}
+            {{- if .Values.controls }}
             {{- if .Values.controls.fileStorage }}
             - name: diskwriter
               mountPath: {{ .Values.storage.mountPath }}
             {{- end }}
+            {{- end }}
           envFrom:
             - configMapRef:
                 name: {{ include "ricxapp.configmapname" . }}-appenv