This PR delivers support for custom annotations to be rendered using templates.
This feature is specially useful if the routing mode is path.
Envoy will only enable websocket for routes that match exactly the path set on the Ingress rules.
The example below demonstrates how custom annotations using template would be generated for a game server named octops-tl6hf-fnmgd.
Custom Annotation: octops-projectcontour.io/websocket-routes: /{{ .Name }}
Final Annotation: octops-projectcontour.io/websocket-routes: /octops-tl6hf-fnmgd
The same applies for any other custom annotation. In the future more fields will be added but now .Name is the only one supported.
This PR delivers support for custom annotations to be rendered using templates.
This feature is specially useful if the routing mode is
path
. Envoy will only enable websocket for routes that match exactly the path set on the Ingress rules.The example below demonstrates how custom annotations using template would be generated for a game server named
octops-tl6hf-fnmgd
.Custom Annotation:
octops-projectcontour.io/websocket-routes
:/{{ .Name }}
Final Annotation:octops-projectcontour.io/websocket-routes
:/octops-tl6hf-fnmgd
The same applies for any other custom annotation. In the future more fields will be added but now
.Name
is the only one supported.