Skip to content

Commit a305084

Browse files
authored
Fix examples/docs with new listener config (#753)
1 parent dd4b666 commit a305084

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

examples/chat/weaver.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ listeners.chat = {address = "localhost:9000"}
1414

1515
[gke]
1616
regions = ["us-west1", "us-east1"]
17-
listeners.chat = {public_hostname = "chat.example.com"}
17+
listeners.chat = {is_public = true, hostname="chat.example.com"}

examples/collatz/colocated.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ locations = "./ssh_locations.txt"
1515

1616
[gke]
1717
regions = ["us-west1"]
18-
listeners.collatz = {public_hostname = "collatz.example.com"}
18+
listeners.collatz = {is_public = true, hostname = "collatz.example.com"}

examples/collatz/weaver.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ locations = "./ssh_locations.txt"
1414

1515
[gke]
1616
regions = ["us-west1"]
17-
listeners.collatz = {public_hostname = "collatz.example.com"}
17+
listeners.collatz = {is_public = true, hostname = "collatz.example.com"}

examples/factors/weaver.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ listeners.factors = {address = "localhost:9000"}
1010

1111
[gke]
1212
regions = ["us-west1"]
13-
listeners.factors = {public_hostname = "factors.example.com"}
13+
listeners.factors = {is_public = true, hostname = "factors.example.com"}

examples/hello/weaver.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ listeners.hello = {address = "localhost:12345"}
99

1010
[gke]
1111
regions = ["us-west1"]
12-
listeners.hello = {public_hostname = "hello.example.com"}
12+
listeners.hello = {is_public = true, hostname = "hello.example.com"}

examples/reverser/weaver.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ listeners.reverser = {address = "localhost:9000"}
1010

1111
[gke]
1212
regions = ["us-west1"]
13-
listeners.reverser = {public_hostname = "reverser.example.com"}
13+
listeners.reverser = {is_public = true, hostname = "reverser.example.com"}

website/blog/quick_intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ rollout = "6h"
222222

223223
[gke]
224224
regions = ["us-west1", "us-east2"]
225-
listeners.boutique = {public_hostname = "online-boutique.net"}
225+
listeners.boutique = {is_public = true, hostname = "online-boutique.net"}
226226
```
227227

228228
We just need to specify the application binary, the duration of the rollout,

website/docs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ binary = "./hello"
24462446
24472447
[gke]
24482448
regions = ["us-west1"]
2449-
listeners.hello = {public_hostname = "hello.com"}
2449+
listeners.hello = {is_public = true, hostname = "hello.com"}
24502450
```
24512451

24522452
The `[serviceweaver]` section of the config file specifies the compiled Service
@@ -2840,16 +2840,16 @@ You can configure `weaver gke` using the `[gke]` section of a
28402840
```toml
28412841
[gke]
28422842
regions = ["us-west1", "us-east1"]
2843-
listeners.cat = {public_hostname = "cat.com"}
2844-
listeners.hat = {public_hostname = "hat.gg"}
2843+
listeners.cat = {is_public = true, hostname = "cat.com"}
2844+
listeners.hat = {is_public = true, hostname = "hat.gg"}
28452845
```
28462846

28472847
| Field | Required? | Description |
28482848
|-------------|-----------|------------------------------------------------------------------------------------------------------------------------|
28492849
| regions | yes | Regions in which the Service Weaver application should be deployed. Note that at least one region should be specified. |
28502850
| image | optional | Base image used to build the application container image. If not specified, `image = ubuntu:rolling`. |
28512851
| minreplicas | optional | Minimum number of running pods for each component. If not specified, `minreplicas = 1`. |
2852-
| listeners | optional | The application's listener options, e.g., the listeners' public hostnames. |
2852+
| listeners | optional | The application's listener options, e.g., the listeners' hostnames. |
28532853

28542854
**Note** that by default, your Service Weaver application will be deployed in the
28552855
currently active project using the currently active account; i.e., in the project
@@ -2905,7 +2905,7 @@ binary = "./hello"
29052905
29062906
[gke]
29072907
regions = ["us-west1"]
2908-
listeners.hello = {public_hostname = "hello.com"}
2908+
listeners.hello = {is_public = true, hostname = "hello.com"}
29092909
29102910
$ weaver gke-local deploy weaver.toml
29112911
Deploying the application... Done

website/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h2><a href="docs.html#config-files">Tiny Config 🎛️</a></h2>
148148

149149
[gke]
150150
regions = ["us-west1", "us-east1"]
151-
listeners.example = {public_hostname = "example.com"},
151+
listeners.example = {is_public = true, hostname = "example.com"},
152152
</markdown>
153153
</div>
154154
</div>

0 commit comments

Comments
 (0)