Skip to content

Commit

Permalink
Adding configuration to find/replace values in the to-be-encoded file
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjohnson00 committed Jul 13, 2020
1 parent 68a6d9b commit 0235dbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ spec:
value: consul-consul-server.consul:8500
- name: JOB_TYPE
value: {{ .Values.jobType }}
- name: FILE_NAME_REPLACE_NEEDLE
value: {{ .Values.fileNameReplaceNeedle }}
- name: FILE_NAME_REPLACE_VALUE
value: {{ .Values.fileNameReplaceValue }}
volumeMounts:
- name: watch
mountPath: /watch
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ quality: 720p
movePath: /nfs-data/encoding_queue
encodingProfile: "Roku 720p30 Surround"
jobType: tv
# the needle is what to look for, value is what to replace with
# for example if the watcher creates jobs to downgrade resolution, you might want to set
# needle to 1080p and value to 720p so that any 1080p file (with 1080p in the name) encoded comes out with 720p in the
# name instead
fileNameReplaceNeedle: ""
fileNameReplaceValue: ""

serviceAccount:
name: "handbrake-job-creator-svc-acnt"
Expand Down

0 comments on commit 0235dbc

Please sign in to comment.