Skip to content

Commit

Permalink
Add mergeGateways field to EnvoyProxy spec
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szwaj <[email protected]>
  • Loading branch information
cnvergence committed Apr 11, 2023
1 parent cd18c96 commit 5fa9e88
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/config/v1alpha1/envoyproxy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ type EnvoyProxySpec struct {
//
// +optional
Bootstrap *string `json:"bootstrap,omitempty"`

// MergeGateways defines if Gateway resources should be merged onto the same Envoy Proxy Infrastructure.
// Setting this field to true would merge all Gateway Listeners under the parent Gateway Class.
//
// +optional
MergeGateways *bool `json:"mergeGateways,omitempty"`
}

// EnvoyProxyProvider defines the desired state of a resource provider.
Expand Down
5 changes: 5 additions & 0 deletions api/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ spec:
unspecified, defaults to "System: Info".'
type: object
type: object
mergeGateways:
description: MergeGateways defines if Gateway resources should be
merged onto the same Envoy Proxy Infrastructure. Setting this field
to true would merge all Gateway Listeners under the parent Gateway
Class.
type: boolean
provider:
description: Provider defines the desired resource provider and provider-specific
configuration. If unspecified, the "Kubernetes" resource provider
Expand Down
1 change: 1 addition & 0 deletions docs/latest/api/config_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ _Appears in:_
| `provider` _[EnvoyProxyProvider](#envoyproxyprovider)_ | Provider defines the desired resource provider and provider-specific configuration. If unspecified, the "Kubernetes" resource provider is used with default configuration parameters. |
| `logging` _[ProxyLogging](#proxylogging)_ | Logging defines logging parameters for managed proxies. If unspecified, default settings apply. This type is not implemented until https://github.com/envoyproxy/gateway/issues/280 is fixed. |
| `bootstrap` _string_ | Bootstrap defines the Envoy Bootstrap as a YAML string. Visit https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/bootstrap/v3/bootstrap.proto#envoy-v3-api-msg-config-bootstrap-v3-bootstrap to learn more about the syntax. If set, this is the Bootstrap configuration used for the managed Envoy Proxy fleet instead of the default Bootstrap configuration set by Envoy Gateway. Some fields within the Bootstrap that are required to communicate with the xDS Server (Envoy Gateway) and receive xDS resources from it are not configurable and will result in the `EnvoyProxy` resource being rejected. Backward compatibility across minor versions is not guaranteed. We strongly recommend using `egctl x translate` to generate a `EnvoyProxy` resource with the `Bootstrap` field set to the default Bootstrap configuration used. You can edit this configuration, and rerun `egctl x translate` to ensure there are no validation errors. |
| `mergeGateways` _boolean_ | MergeGateways defines if Gateway resources should be merged onto the same Envoy Proxy Infrastructure. Setting this field to true would merge all Gateway Listeners under the parent Gateway Class. |



Expand Down

0 comments on commit 5fa9e88

Please sign in to comment.