Run all components in one namespace
[oom.git] / kubernetes / aaf / templates / aaf-cs-deployment.yaml
index f240150..be5f6c1 100644 (file)
@@ -1,8 +1,9 @@
+#{{ if not .Values.disableAafAafCs }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: aaf-cs
-  namespace: "{{ .Values.nsPrefix }}-aaf"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
   replicas: 1
   selector:
@@ -22,15 +23,16 @@ spec:
         name: "aaf-cs"
         volumeMounts:
         - mountPath: /data
-          name: aaf-data
+          name: aaf-cs-data
         readinessProbe:
           tcpSocket:
             port: 7000
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
-        - name: aaf-data
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aaf/data
+        - name: aaf-cs-data
+          secret:
+            secretName: aaf-cs-data-secret
       imagePullSecrets:
       - name: {{ .Values.nsPrefix }}-docker-registry-key
+#{{ end }}