Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for Envoy 1.15 #11118

Merged
merged 7 commits into from
Oct 4, 2021
Merged

Remove support for Envoy 1.15 #11118

merged 7 commits into from
Oct 4, 2021

Conversation

eculver
Copy link
Contributor

@eculver eculver commented Sep 22, 2021

Refs #11100, stacked on #11115.

This is a follow on to #11115 to remove support for Envoy 1.15. The only notable changes are around the feature flags that we had in place for Envoy < 1.16, which means only 1.15. As such, I am removing these flags and code that references them.

Note: As this is pretty unfamiliar territory for me, I'd like to specifically call out the bits in ./agent/xds/clusters.go that are getting removed (maybeInjectStubClusterForGateways and calling code). This appears correct to me, but need someone to confirm.

I'll rebase on main once #11115 lands but for now this will be based on eculver/envoy-1.19.

@eculver eculver requested review from rboyer and freddygv September 22, 2021 18:56
@github-actions github-actions bot added theme/envoy/xds Related to Envoy support type/ci Relating to continuous integration (CI) tooling for testing or releases labels Sep 22, 2021
Copy link
Contributor

@freddygv freddygv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one minor suggestion

agent/xds/envoy_versioning.go Outdated Show resolved Hide resolved
default:
return nil, fmt.Errorf("Invalid service kind: %v", cfgSnap.Kind)
}
}

func (s *ResourceGenerator) maybeInjectStubClusterForGateways(resources []proto.Message) ([]proto.Message, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

@@ -310,12 +310,6 @@ func (s *Server) processDelta(stream ADSDeltaStream, reqCh <-chan *envoy_discove
}
if sent {
sentType[op.TypeUrl] = struct{}{}
if generator.ProxyFeatures.IncrementalXDSUpdatesMustBeSerial {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

GatewaysNeedStubClusterWhenEmptyWithIncrementalXDS bool

// IncrementalXDSUpdatesMustBeSerial is needed to avoid an envoy crash.
// For example, we previously had flags for Envoy < 1.16 called:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. Prior to these 2 flags existing the struct was empty for a bit. Prior to that it had completely different features available. When I went to add these two flags I had to look at my own file history to see how to re-add a feature flag.

eculver and others added 2 commits September 28, 2021 15:59
Co-authored-by: Freddy <freddygv@users.noreply.github.com>
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging September 28, 2021 23:05 Inactive
@vercel vercel bot temporarily deployed to Preview – consul September 28, 2021 23:05 Inactive
@vercel vercel bot temporarily deployed to Preview – consul September 28, 2021 23:07 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging September 28, 2021 23:07 Inactive
@vercel vercel bot temporarily deployed to Preview – consul September 30, 2021 18:32 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging September 30, 2021 18:32 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging October 1, 2021 18:28 Inactive
@vercel vercel bot temporarily deployed to Preview – consul October 1, 2021 18:28 Inactive
Base automatically changed from eculver/envoy-1.19.1 to main October 4, 2021 21:13
@eculver eculver merged commit e808620 into main Oct 4, 2021
@eculver eculver deleted the eculver/remove-envoy-1.15 branch October 4, 2021 21:14
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/463501.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/envoy/xds Related to Envoy support type/ci Relating to continuous integration (CI) tooling for testing or releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants