Skip to content

Commit

Permalink
check unicity of tmpfs when merging
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
  • Loading branch information
glours committed Jan 29, 2024
1 parent a9bdf55 commit f17ec54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions override/merge_tmpfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
tmpfs:
- /bar
- /baz
- /foo
`, `
services:
test:
Expand Down Expand Up @@ -70,6 +71,7 @@ services:
test:
tmpfs:
- /bar
- /foo
`

r := `
Expand Down
1 change: 1 addition & 0 deletions override/uncity.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func init() {
unique["services.*.profiles"] = keyValueIndexer
unique["services.*.secrets"] = mountIndexer("/run/secrets")
unique["services.*.sysctls"] = keyValueIndexer
unique["services.*.tmpfs"] = keyValueIndexer
unique["services.*.volumes"] = volumeIndexer
}

Expand Down

0 comments on commit f17ec54

Please sign in to comment.