Skip to content

Commit

Permalink
make ExtraHosts global to specs
Browse files Browse the repository at this point in the history
  • Loading branch information
timfeirg committed Nov 27, 2017
1 parent ae990d2 commit c753cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func generateDeployOpts(data []byte, pod, node, entry, image, network string, cp
Healcheck: healthCheck,
Hook: hook,
RestartPolicy: entrypoint.RestartPolicy,
ExtraHosts: entrypoint.ExtraHosts,
ExtraHosts: specs.ExtraHosts,
},
Podname: pod,
Nodename: node,
Expand Down
1 change: 1 addition & 0 deletions types/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Specs struct {
Volumes []string `yaml:"volumes,omitempty,flow"`
Meta map[string]string `yaml:"meta,omitempty,flow"`
DNS []string `yaml:"dns,omitempty,flow"`
ExtraHosts []string `yaml:"dns,omitempty,flow"`
}

type Container struct {
Expand Down

0 comments on commit c753cdf

Please sign in to comment.