Add option to disable specific deployments
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
index 3a98f87..561d795 100644 (file)
@@ -1,3 +1,4 @@
+#{{ if not .Values.disableRobotRobot }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
@@ -18,6 +19,9 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: robot
         volumeMounts:
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         - name: robot-eteshare
           mountPath: /share
         - name: robot-resources-asdc-interface
@@ -44,6 +48,9 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
+        - name: localtime
+          hostPath:
+            path: /etc/localtime
         - name: robot-eteshare
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
@@ -73,3 +80,4 @@ spec:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vlb/dnsscaling.env
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}
\ No newline at end of file