From c015f7b87764cb0c142e755ea3a47fc9ef21a0a5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 3 Feb 2018 20:14:22 +0100 Subject: added flag for decklink input --- .../kubernetes/flumotion-worker-deploy.yml.j2 | 40 ++++++++++++---------- 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'templates/default/kubernetes/flumotion-worker-deploy.yml.j2') diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 index 778aa06..d184661 100644 --- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 +++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 @@ -36,29 +36,33 @@ spec: - -u user - -p test - -F {{ 8000 + loop.index0 * 10 }}-{{ 8001 + loop.index0 * 10 }} -# securityContext: -# privileged: true volumeMounts: - name: home mountPath: /srv -# - name: decklink-devices -# mountPath: /dev/blackmagic -# - name: decklink-libs -# subPath: libDeckLinkAPI.so -# mountPath: /usr/lib/libDeckLinkAPI.so -# - name: decklink-libs -# subPath: libDeckLinkPreviewAPI.so -# mountPath: /usr/lib/libDeckLinkPreviewAPI.so +{% if 'input-decklink' in sub.flags %} + - name: decklink-devices + mountPath: /dev/blackmagic + - name: decklink-libs + subPath: libDeckLinkAPI.so + mountPath: /usr/lib/libDeckLinkAPI.so + - name: decklink-libs + subPath: libDeckLinkPreviewAPI.so + mountPath: /usr/lib/libDeckLinkPreviewAPI.so + securityContext: + privileged: true +{% endif %} {% endfor %} volumes: - name: home emptyDir: medium: Memory -# - name: decklink-devices -# hostPath: -# type: Directory -# path: /dev/blackmagic -# - name: decklink-libs -# hostPath: -# type: Directory -# path: /usr/lib/ +{% if 'input-decklink' in worker.flags %} + - name: decklink-devices + hostPath: + type: Directory + path: /dev/blackmagic + - name: decklink-libs + hostPath: + type: Directory + path: /usr/lib/ +{% endif %} -- cgit v1.2.3