Skip to content

Commit

Permalink
Merge pull request #150 from tgross/gh149_stopTimeout_config_key
Browse files Browse the repository at this point in the history
Remove stopTimeout from configMap before checking unknown keys
  • Loading branch information
tgross committed May 11, 2016
2 parents 8e8583c + 5d716d3 commit d0db66d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ func decodeConfig(configMap map[string]interface{}, result *rawConfig) error {
delete(configMap, "preStart")
delete(configMap, "preStop")
delete(configMap, "postStop")
delete(configMap, "stopTimeout")
delete(configMap, "services")
delete(configMap, "backends")
delete(configMap, "tasks")
Expand Down
1 change: 1 addition & 0 deletions core/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var testJSON = `{
"preStart": "/bin/to/preStart.sh arg1 arg2",
"preStop": ["/bin/to/preStop.sh","arg1","arg2"],
"postStop": ["/bin/to/postStop.sh"],
"stopTimeout": 5,
"services": [
{
"name": "serviceA",
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/fixtures/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN apk update && apk add \
&& rm -rf /var/cache/apk/*

# we use consul-template to re-write our Nginx virtualhost config
RUN curl -Lo /tmp/consul_template_0.11.0_linux_amd64.zip https://github.com/hashicorp/consul-template/releases/download/v0.11.0/consul_template_0.11.0_linux_amd64.zip && \
unzip /tmp/consul_template_0.11.0_linux_amd64.zip && \
RUN curl -Lo /tmp/consul_template_0.14.0_linux_amd64.zip https://releases.hashicorp.com/consul-template/0.14.0/consul-template_0.14.0_linux_amd64.zip && \
unzip /tmp/consul_template_0.14.0_linux_amd64.zip && \
mv consul-template /bin

# Add confd to re-write our Nginx config from etcd
Expand Down

0 comments on commit d0db66d

Please sign in to comment.