Skip to content

Commit

Permalink
feat: support binaryContent for inline Score files (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza authored Jan 13, 2025
1 parent ef1ed10 commit d5ecde8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions samples/score-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ containers:
content: |
some multiline
content
- target: /my/other/binaryfile
binaryContent: ADBgwpA=
volumes:
- source: volume-name
target: /mnt/something
Expand Down
13 changes: 12 additions & 1 deletion score-v1b1.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
"description": "The extra files to mount into the container.",
"type": "array",
"items": {
"description": "The details of a file to mount in the container. One of 'source', 'content', or 'binaryContent' must be provided.",
"type": "object",
"required": [
"target"
Expand All @@ -257,7 +258,11 @@
"minLength": 1
},
"content": {
"description": "The inline content for the file.",
"description": "The inline content for the file. Only supports valid utf-8.",
"type": "string"
},
"binaryContent": {
"description": "Inline standard-base64 encoded content for the file. Does not support placeholder expansion.",
"type": "string"
},
"noExpand": {
Expand All @@ -272,6 +277,12 @@
"content"
]
},
{
"required": [
"target",
"binaryContent"
]
},
{
"required": [
"target",
Expand Down

0 comments on commit d5ecde8

Please sign in to comment.