Closed ghen closed 1 year ago
Revised support for container files contents definitions:
source
content
noExpand
Score file example with the source file reference:
apiVersion: score.dev/v1b1 metadata: name: example service: containers: my-container: image: busybox:latest files: - target: /my-dir/my-file mode: "0664" source: ./files/my-file resources: env: type: environment
Score file example with inline string content and noExpand:
apiVersion: score.dev/v1b1 metadata: name: example service: containers: my-container: image: busybox:latest files: - target: /my-dir/my-file mode: "0664" content: | line one VALUE_OF_MY_VAR line two ${do.not.expand} noExpand: true resources: env: type: environment
Revised support for container files contents definitions:
source
property defines the path to a file. Can't be used withcontent
property at the same time.content
property is now a string. Array of strings can still be used, but marked as deprecated.noExpand
property if set to true, the placeholder expansion will not occur in the content or the file.Score file example with the source file reference:
Score file example with inline string content and noExpand:
Types of changes
Checklist: