Skip to content

Commit 3b7ec6b

Browse files
committed
Add option to ExternalService to control envoy proxy arguments
1 parent 77b65bc commit 3b7ec6b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

api/v1/externalservice_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ type ExternalServiceSpec struct {
6363
// +optional
6464
EnvoyClusterMaxConnections *uint32 `json:"envoyClusterMaxConnections,omitempty"`
6565

66+
// Additional arguments passed to the Envoy proxy image
67+
EnvoyArguments []string `json:"envoyArguments,omitempty"`
68+
6669
// Provides a way to override the global default
6770
// +optional
6871
ServiceTopologyMode string `json:"serviceTopologyMode,omitempty"`

config/crd/bases/egress.monzo.com_externalservices.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ spec:
3939
dnsName:
4040
description: DnsName is a DNS name target for the external service
4141
type: string
42+
envoyArguments:
43+
description: Additional arguments passed to the Envoy proxy image
44+
type: array
45+
items:
46+
type: string
4247
envoyClusterMaxConnections:
4348
description: The maximum number of connections that Envoy will establish
4449
to all hosts in an upstream cluster (defaults to 1024). If this

controllers/deployment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ func deployment(es *egressv1.ExternalService, configHash string) *appsv1.Deploym
189189
{
190190
Name: "gateway",
191191
Image: img,
192+
Args: es.Spec.EnvoyArguments,
192193
ImagePullPolicy: corev1.PullIfNotPresent,
193194
Ports: deploymentPorts(es),
194195
VolumeMounts: []corev1.VolumeMount{

0 commit comments

Comments
 (0)