Skip to content

Commit

Permalink
Don't set envoy flag --max-obj-name-len
Browse files Browse the repository at this point in the history
This flag was deprecated and ignored in Envoy 1.11 and will result
in an error for Envoy 1.15.
  • Loading branch information
lkysow committed Oct 6, 2020
1 parent 9a19fe9 commit 9620778
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
## UNRELEASED

BREAKING CHANGES:
* Connect: No longer set `--max-obj-name-len` flag when executing `envoy`. This flag
was [deprecated](https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.11.0#deprecated)
in Envoy 1.11.0 and had no effect from then onwards. It will also result
in an error for Envoy >= 1.15.0.

If you are running any Envoy version >= 1.11.0 this change will have no effect. If you
are running an Envoy version < 1.11.0 then you must upgrade Envoy to a newer
version. This can be done by setting the `global.imageEnvoy` key in the
Consul Helm chart.

IMPROVEMENTS:

* Add an ability to configure the synthetic Consul node name where catalog sync registers services. [[GH-312](https://github.com/hashicorp/consul-k8s/pull/312)]
Expand Down
1 change: 0 additions & 1 deletion connect-inject/envoy_sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func (h *Handler) envoySidecar(pod *corev1.Pod, k8sNamespace string) (corev1.Con
},
Command: []string{
"envoy",
"--max-obj-name-len", "256",
"--config-path", "/consul/connect-inject/envoy-bootstrap.yaml",
},
}
Expand Down
1 change: 0 additions & 1 deletion connect-inject/envoy_sidecar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func TestHandlerEnvoySidecar(t *testing.T) {
require.NoError(err)
require.Equal(container.Command, []string{
"envoy",
"--max-obj-name-len", "256",
"--config-path", "/consul/connect-inject/envoy-bootstrap.yaml",
})

Expand Down

0 comments on commit 9620778

Please sign in to comment.