Skip to content

Commit

Permalink
Patch through the annotations from the Mesh Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
t-eckert committed Dec 21, 2023
1 parent 0f6a175 commit d8d6789
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions control-plane/gateways/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func (b *meshGatewayBuilder) deploymentSpec() (*appsv1.DeploymentSpec, error) {
constants.AnnotationMeshInject: "false",
// This functionality only applies when proxy sidecars are used
constants.AnnotationTransparentProxyOverwriteProbes: "false",
// This annotation determines which source to use to set the
// WAN address and WAN port for the Mesh Gateway service registration.
constants.AnnotationGatewayWANSource: b.gateway.Annotations[constants.AnnotationGatewayWANSource],
// This annotation determines the WAN port for the Mesh Gateway service registration.
constants.AnnotationGatewayWANPort: b.gateway.Annotations[constants.AnnotationGatewayWANPort],
// This annotation determines the address for the gateway when the source annotation is "Static".
constants.AnnotationGatewayWANAddress: b.gateway.Annotations[constants.AnnotationGatewayWANAddress],
},
},
Spec: corev1.PodSpec{
Expand Down

0 comments on commit d8d6789

Please sign in to comment.