Skip to content

Commit d07b899

Browse files
author
Jonathan S. Katz
committed
Remove references to --autofail flag
This has been gone for a bit. Replace with `--enable-autofail` and `--disable-autofail`. Issue: #2214
1 parent 9291d88 commit d07b899

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

cmd/pgo/cmd/update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ var UpdateCmd = &cobra.Command{
196196
Short: "Update a pgouser, pgorole, or cluster",
197197
Long: `The update command allows you to update a pgouser, pgorole, or cluster. For example:
198198
199-
pgo update cluster --selector=name=mycluster --autofail=false
200-
pgo update cluster --all --autofail=true
199+
pgo update cluster --selector=name=mycluster --disable-autofail
200+
pgo update cluster --all --enable-autofail
201201
pgo update namespace mynamespace
202202
pgo update pgbouncer mycluster --rotate-password
203203
pgo update pgorole somerole --pgorole-permission="Cat"
@@ -240,7 +240,7 @@ var UpdateClusterCmd = &cobra.Command{
240240
Short: "Update a PostgreSQL cluster",
241241
Long: `Update a PostgreSQL cluster. For example:
242242
243-
pgo update cluster mycluster --autofail=false
243+
pgo update cluster mycluster --disable-autofail
244244
pgo update cluster mycluster myothercluster --disable-autofail
245245
pgo update cluster --selector=name=mycluster --disable-autofail
246246
pgo update cluster --all --enable-autofail`,

docs/content/architecture/disaster-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ to re-enable autofail if you would like your PostgreSQL cluster to be
195195
highly-available. You can re-enable autofail with this command:
196196

197197
```shell
198-
pgo update cluster hacluster --autofail=true
198+
pgo update cluster hacluster --enable-autofail
199199
```
200200

201201
## Scheduling Backups

docs/content/pgo-client/common-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ high availability on the PostgreSQL cluster manually. You can re-enable high
697697
availability by executing the following command:
698698

699699
```
700-
pgo update cluster hacluster --autofail=true
700+
pgo update cluster hacluster --enable-autofail
701701
```
702702

703703
### Logical Backups (`pg_dump` / `pg_dumpall`)

docs/content/pgo-client/reference/pgo_update.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Update a pgouser, pgorole, or cluster
99

1010
The update command allows you to update a pgouser, pgorole, or cluster. For example:
1111

12-
pgo update cluster --selector=name=mycluster --autofail=false
13-
pgo update cluster --all --autofail=true
12+
pgo update cluster --selector=name=mycluster --disable-autofail
13+
pgo update cluster --all --enable-autofail
1414
pgo update namespace mynamespace
1515
pgo update pgbouncer mycluster --rotate-password
1616
pgo update pgorole somerole --pgorole-permission="Cat"

docs/content/pgo-client/reference/pgo_update_cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Update a PostgreSQL cluster
99

1010
Update a PostgreSQL cluster. For example:
1111

12-
pgo update cluster mycluster --autofail=false
12+
pgo update cluster mycluster --disable-autofail
1313
pgo update cluster mycluster myothercluster --disable-autofail
1414
pgo update cluster --selector=name=mycluster --disable-autofail
1515
pgo update cluster --all --enable-autofail

internal/apiserver/clusterservice/clusterimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ func UpdateCluster(request *msgs.UpdateClusterRequest) msgs.UpdateClusterRespons
18671867
for i := range clusterList.Items {
18681868
cluster := clusterList.Items[i]
18691869

1870-
// set autofail=true or false on each pgcluster CRD
1870+
// set --enable-autofail / --disable-autofail on each pgcluster CRD
18711871
// Make the change based on the value of Autofail vis-a-vis UpdateClusterAutofailStatus
18721872
switch request.Autofail {
18731873
case msgs.UpdateClusterAutofailEnable:

internal/apiserver/clusterservice/clusterservice.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ func TestClusterHandler(w http.ResponseWriter, r *http.Request) {
303303
}
304304

305305
// UpdateClusterHandler ...
306-
// pgo update cluster mycluster --autofail=true
307-
// pgo update cluster --selector=env=research --autofail=false
306+
// pgo update cluster mycluster --enable-autofail
307+
// pgo update cluster --selector=env=research --disable-autofail
308308
// returns a UpdateClusterResponse
309309
func UpdateClusterHandler(w http.ResponseWriter, r *http.Request) {
310310
// swagger:operation POST /clustersupdate clusterservice clustersupdate

0 commit comments

Comments
 (0)