diff options
Diffstat (limited to 'templates/default')
-rw-r--r-- | templates/default/kubernetes/flumotion-worker-deploy.yml.j2 | 21 |
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 + |