summaryrefslogtreecommitdiff
path: root/templates/default/kubernetes/flumotion-worker-deploy.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-02-10 20:21:16 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-02-10 20:21:16 +0100
commit2e158b9bdd93cff0f4e2a5fe00fef3bd73448e62 (patch)
tree55e16aa6383f720f727f30e31a89592fcdb84523 /templates/default/kubernetes/flumotion-worker-deploy.yml.j2
parentmake use of new and revised worker flags for inputs (diff)
recording works now
Diffstat (limited to 'templates/default/kubernetes/flumotion-worker-deploy.yml.j2')
-rw-r--r--templates/default/kubernetes/flumotion-worker-deploy.yml.j221
1 files changed, 18 insertions, 3 deletions
diff --git a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2 b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2
index 0705364..49cb6d4 100644
--- a/templates/default/kubernetes/flumotion-worker-deploy.yml.j2
+++ b/templates/default/kubernetes/flumotion-worker-deploy.yml.j2
@@ -48,8 +48,8 @@ spec:
volumeMounts:
- name: home
mountPath: /srv
+%% set _needs_ = { 'decklink_libs': False, 'privileged': False }
%% if 'input' in sub.flags
-%% set _needs_ = { 'decklink_libs': False, 'privileged': False }
%% for input_name in worker.flags.input
%% if desc.inputs[input_name].type == 'decklink'
%% if _needs_.update({'decklink_libs': True, 'privileged': True})
@@ -67,10 +67,16 @@ spec:
subPath: libDeckLinkPreviewAPI.so
mountPath: /usr/lib/libDeckLinkPreviewAPI.so
%% endif
-%% if _needs_.privileged
+%% endif
+%% if 'record' in worker.flags
+%% for record_name in worker.flags.record
+ - name: record-{{ record_name }}
+ mountPath: /srv/recordings/{{ record_name }}
+%% endfor
+%% endif
+%% if _needs_.privileged
securityContext:
privileged: true
-%% endif
%% endif
%% endfor
volumes:
@@ -97,3 +103,12 @@ spec:
path: /usr/lib/
%% endif
%% endif
+%% if 'record' in worker.flags
+%% for record_name in worker.flags.record
+ - name: record-{{ record_name }}
+ hostPath:
+ type: DirectoryOrCreate
+ path: {{ desc.records[record_name].directory }}/{{ record_name }}
+%% endfor
+%% endif
+