|
3 | 3 | * Use of this source code is governed by the Apache License that can be found in the LICENSE file. |
4 | 4 | */ |
5 | 5 |
|
6 | | -/* |
7 | | -Package application includes support for applying updates to the Border servers. |
8 | | -
|
9 | | -"Border Servers" are servers that are exposed to the outside world and direct traffic into the cluster. |
10 | | -
|
11 | | -The BorderClient module defines an interface that can be implemented to support other Border Server types. |
12 | | -To add a Border Server client... |
13 | | -1. Create a module that implements the BorderClient interface; |
14 | | -2. Add a new constant in application_constants.go that acts as a key for selecting the client; |
15 | | -3. Update the NewBorderClient factory method in border_client.go that returns the client; |
16 | | -
|
17 | | -At this time the only supported Border Servers are NGINX Plus servers. |
| 6 | +// Package application includes support for applying updates to the Border servers. |
18 | 7 |
|
19 | | -The two Border Server clients for NGINX Plus are: |
20 | | -- NginxHTTPBorderClient: updates NGINX Plus servers using HTTP Upstream methods on the NGINX Plus API. |
21 | | -- NginxStreamBorderClient: updates NGINX Plus servers using Stream Upstream methods on the NGINX Plus API. |
| 8 | +// "Border Servers" are servers that are exposed to the outside world and direct traffic into the cluster. |
22 | 9 |
|
23 | | -Both of these implementations use the NGINX Plus client module to communicate with the NGINX Plus server. |
| 10 | +// The BorderClient module defines an interface that can be implemented to support other Border Server types. |
| 11 | +// To add a Border Server client... |
| 12 | +// 1. Create a module that implements the BorderClient interface; |
| 13 | +// 2. Add a new constant in application_constants.go that acts as a key for selecting the client; |
| 14 | +// 3. Update the NewBorderClient factory method in border_client.go that returns the client; |
24 | 15 |
|
25 | | -Selection of the appropriate client is based on the Annotations present on the Service definition, e.g.: |
| 16 | +// At this time the only supported Border Servers are NGINX Plus servers. |
26 | 17 |
|
27 | | - annotations: |
28 | | - nginxinc.io/nlk-<upstream name>: <value> |
| 18 | +// The two Border Server clients for NGINX Plus are: |
| 19 | +// - NginxHTTPBorderClient: updates NGINX Plus servers using HTTP Upstream methods on the NGINX Plus API. |
| 20 | +// - NginxStreamBorderClient: updates NGINX Plus servers using Stream Upstream methods on the NGINX Plus API. |
29 | 21 |
|
30 | | -where <upstream name> is the name of the upstream in the NGINX Plus configuration |
31 | | -and <value> is one of the constants in application_constants.go. |
32 | | -*/ |
| 22 | +// Both of these implementations use the NGINX Plus client module to communicate with the NGINX Plus server. |
33 | 23 |
|
34 | 24 | package application |
0 commit comments