diff --git a/samples/score-full.yaml b/samples/score-full.yaml index 4b711a1..81206b5 100644 --- a/samples/score-full.yaml +++ b/samples/score-full.yaml @@ -34,6 +34,8 @@ containers: content: | some multiline content + - target: /my/other/binaryfile + binaryContent: ADBgwpA= volumes: - source: volume-name target: /mnt/something diff --git a/score-v1b1.json b/score-v1b1.json index 1da1358..879bfc8 100644 --- a/score-v1b1.json +++ b/score-v1b1.json @@ -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" @@ -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": { @@ -272,6 +277,12 @@ "content" ] }, + { + "required": [ + "target", + "binaryContent" + ] + }, { "required": [ "target",