Skip to content

Commit

Permalink
Add option to ExternalService to control envoy proxy arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Apr 4, 2024
1 parent 77b65bc commit 3b7ec6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1/externalservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ type ExternalServiceSpec struct {
// +optional
EnvoyClusterMaxConnections *uint32 `json:"envoyClusterMaxConnections,omitempty"`

// Additional arguments passed to the Envoy proxy image
EnvoyArguments []string `json:"envoyArguments,omitempty"`

// Provides a way to override the global default
// +optional
ServiceTopologyMode string `json:"serviceTopologyMode,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/egress.monzo.com_externalservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ spec:
dnsName:
description: DnsName is a DNS name target for the external service
type: string
envoyArguments:
description: Additional arguments passed to the Envoy proxy image
type: array
items:
type: string
envoyClusterMaxConnections:
description: The maximum number of connections that Envoy will establish
to all hosts in an upstream cluster (defaults to 1024). If this
Expand Down
1 change: 1 addition & 0 deletions controllers/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func deployment(es *egressv1.ExternalService, configHash string) *appsv1.Deploym
{
Name: "gateway",
Image: img,
Args: es.Spec.EnvoyArguments,
ImagePullPolicy: corev1.PullIfNotPresent,
Ports: deploymentPorts(es),
VolumeMounts: []corev1.VolumeMount{
Expand Down

0 comments on commit 3b7ec6b

Please sign in to comment.