Skip to content

Commit

Permalink
Merge pull request #41 from Roman-Mitusov/patch-1
Browse files Browse the repository at this point in the history
Update processing of config
  • Loading branch information
alcounit authored May 24, 2021
2 parents 9e1e125 + 5c1cfe5 commit 43ab7a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ func readConfig(configFile string) (map[string]*Layout, error) {
for _, layout := range layouts {
spec := layout.DefaultSpec
for _, container := range layout.Versions {
container.Path = layout.Path
if container.Path == "" {
container.Path = layout.Path
}
container.Meta.Annotations = merge(container.Meta.Annotations, layout.Meta.Annotations)
container.Meta.Labels = merge(container.Meta.Labels, layout.Meta.Labels)
container.Volumes = layout.Volumes
Expand Down

0 comments on commit 43ab7a0

Please sign in to comment.