refactor helm files to use namespace prefix
[oom.git] / kubernetes / appc / templates / appc-deployment.yaml
index 0bd93f8..049ac5d 100644 (file)
@@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: appc
-  namespace: {{ .Values.NS }}
+  namespace: "{{ .Values.nsPrefix }}-appc"
 spec:
   selector:
     matchLabels:
@@ -70,9 +70,9 @@ spec:
       volumes:
         - name: appc-conf
           hostPath:
-            path: /dockerdata-nfs/onap/appc/conf
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf
         - name: sdnc-conf
           hostPath:
-            path: /dockerdata-nfs/onap/sdnc/conf
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf
       imagePullSecrets:
-      - name: onap-docker-registry-key
+      - name: "{{ .Values.nsPrefix }}-docker-registry-key"