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
catalog_testing.go
check_watcher.go
check_watcher_test.go
client.go connect: enable proxy.passthrough configuration 2020-03-31 17:15:27 -06:00
client_test.go
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
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
unit_test.go tests: deflake TestConsul_PeriodicSync 2020-03-30 07:06:47 -04:00
version_checker.go
version_checker_test.go