-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support map of files and volumes and mark arrays as deprecated
- Loading branch information
1 parent
d5ecde8
commit 430ab5e
Showing
3 changed files
with
136 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# The following workload describes a container which has a file and volume mounted. The file mount is using the deprecated format of an array of files. | ||
# This was deprecated since files do not infer order and the "target" path can be considered both required and unique. Simalarly, the volume mount is also | ||
# using a deprecated array format. | ||
# ========================================================================================================================================== | ||
apiVersion: score.dev/v1b1 | ||
metadata: | ||
name: "deprecated-files-example" | ||
containers: | ||
main: | ||
image: "example-image:latest" | ||
files: | ||
- target: /mnt/some-path | ||
content: "my content here" | ||
volumes: | ||
- target: /mnt/vol | ||
source: some-volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters