-
Notifications
You must be signed in to change notification settings - Fork 4
Description
It appears the envoy boostrap config parser is hand-rolled in envoy-nginx. This will likely stop working once diego-release moves to configuring Envoy with purely v3 bootstrap configs/APIs, see: cloudfoundry/diego-release#521
I would suggest leveraging https://github.com/envoyproxy/go-control-plane instead of the hand-rolled Go structs for bootstrap config parsing. This should ensure that when Envoy releases new API versions and deprecates older versions, it is as easy as bumping the go-control-plane dependency and adjusting import paths etc. rather than recreating Envoy config structs by hand.
Note Once diego-release changes to only use v3 configs are merged and released, there will likely be incompatibilities between envoy-nginx-release versions and diego-release versions that need to be taken into account when deploying these releases together. If possible, it would be desirable to future/past proof envoy-nginx to be able to parse Envoy bootstrap configs from multiple API versions.