open-nomad/command/agent/consul
Seth Hoenig 9aa9721143 connect: fix bug where absent connect.proxy stanza needs default config
In some refactoring, a bug was introduced where if the connect.proxy
stanza in a submitted job was nil, the default proxy configuration
would not be initialized with default values, effectively breaking
Connect.

      connect {
        sidecar_service {} # should work
      }

In contrast, by setting an empty proxy stanza, the config values would
be inserted correctly.

      connect {
        sidecar_service {
	  proxy {} # workaround
	}
      }

This commit restores the original behavior, where having a proxy
stanza present is not required.

The unit test for this case has also been corrected.
2020-04-01 11:19:32 -06:00
..
acl_testing.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
catalog_testing.go client: enable configuring enable_tag_override for services 2020-02-10 08:00:55 -06:00
check_watcher.go client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
check_watcher_test.go consul: add test for check watcher deadlock 2019-07-18 08:24:09 -07:00
client.go connect: enable proxy.passthrough configuration 2020-03-31 17:15:27 -06:00
client_test.go consul/connect: in-place update sidecar service registrations on changes 2020-02-19 13:07:04 -06:00
connect.go connect: fix bug where absent connect.proxy stanza needs default config 2020-04-01 11:19:32 -06:00
connect_test.go connect: fix bug where absent connect.proxy stanza needs default config 2020-04-01 11:19:32 -06:00
group_test.go update rest of consul packages 2020-02-16 16:25:04 -06:00
int_test.go mock task hook coordinator in consul integration test 2020-03-21 17:52:55 -04:00
structs.go client: use consistent name for struct receiver parameter 2020-03-31 17:15:27 -06:00
testing.go client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
unit_test.go tests: deflake TestConsul_PeriodicSync 2020-03-30 07:06:47 -04:00
version_checker.go agent + consul 2018-09-13 10:43:40 -07:00
version_checker_test.go Replace Consul TLSSkipVerify handling 2018-03-14 17:43:06 -07:00