diff --git a/.changelog/239.txt b/.changelog/239.txt new file mode 100644 index 00000000..d562d630 --- /dev/null +++ b/.changelog/239.txt @@ -0,0 +1,3 @@ +```release-note:improvement +Add graceful_startup endpoint and postStart hook in order to guarantee that dataplane starts up before application container. +``` diff --git a/cmd/consul-dataplane/config_test.go b/cmd/consul-dataplane/config_test.go index e6e356ac..92183478 100644 --- a/cmd/consul-dataplane/config_test.go +++ b/cmd/consul-dataplane/config_test.go @@ -86,6 +86,7 @@ func TestConfigGeneration(t *testing.T) { GracefulShutdownPath: "/graceful_shutdown", EnvoyDrainTimeSeconds: 30, GracefulPort: 20300, + GracefulStartupPath: "/graceful_startup", }, Telemetry: &consuldp.TelemetryConfig{ UseCentralConfig: true, @@ -189,6 +190,7 @@ func TestConfigGeneration(t *testing.T) { EnvoyDrainTimeSeconds: 30, GracefulPort: 20300, DumpEnvoyConfigOnExitEnabled: true, + GracefulStartupPath: "/graceful_startup", }, Telemetry: &consuldp.TelemetryConfig{ UseCentralConfig: true, @@ -410,6 +412,7 @@ func TestConfigGeneration(t *testing.T) { EnvoyDrainTimeSeconds: 30, GracefulPort: 20300, DumpEnvoyConfigOnExitEnabled: false, + GracefulStartupPath: "/graceful_startup", }, Telemetry: &consuldp.TelemetryConfig{ UseCentralConfig: true,