Skip to content

Commit f7a6b33

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 3dd7045 commit f7a6b33

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

docs/content/architecture/disaster-recovery.md

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

198198
```shell
199-
pgo update cluster hacluster --autofail=true
199+
pgo update cluster hacluster --enable-autofail
200200
```
201201

202202
## Scheduling Backups

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

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

746746
```
747-
pgo update cluster hacluster --autofail=true
747+
pgo update cluster hacluster --enable-autofail
748748
```
749749

750750
### 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
@@ -1802,7 +1802,7 @@ func UpdateCluster(request *msgs.UpdateClusterRequest) msgs.UpdateClusterRespons
18021802

18031803
for _, cluster := range clusterList.Items {
18041804

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

internal/apiserver/clusterservice/clusterservice.go

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

308308
// UpdateClusterHandler ...
309-
// pgo update cluster mycluster --autofail=true
310-
// pgo update cluster --selector=env=research --autofail=false
309+
// pgo update cluster mycluster --enable-autofail
310+
// pgo update cluster --selector=env=research --disable-autofail
311311
// returns a UpdateClusterResponse
312312
func UpdateClusterHandler(w http.ResponseWriter, r *http.Request) {
313313
// swagger:operation POST /clustersupdate clusterservice clustersupdate

pgo/cmd/update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ var UpdateCmd = &cobra.Command{
143143
Short: "Update a pgouser, pgorole, or cluster",
144144
Long: `The update command allows you to update a pgouser, pgorole, or cluster. For example:
145145
146-
pgo update cluster --selector=name=mycluster --autofail=false
147-
pgo update cluster --all --autofail=true
146+
pgo update cluster --selector=name=mycluster --disable-autofail
147+
pgo update cluster --all --enable-autofail
148148
pgo update namespace mynamespace
149149
pgo update pgbouncer mycluster --rotate-password
150150
pgo update pgorole somerole --pgorole-permission="Cat"
@@ -189,7 +189,7 @@ var UpdateClusterCmd = &cobra.Command{
189189
Short: "Update a PostgreSQL cluster",
190190
Long: `Update a PostgreSQL cluster. For example:
191191
192-
pgo update cluster mycluster --autofail=false
192+
pgo update cluster mycluster --disable-autofail
193193
pgo update cluster mycluster myothercluster --disable-autofail
194194
pgo update cluster --selector=name=mycluster --disable-autofail
195195
pgo update cluster --all --enable-autofail`,

0 commit comments

Comments
 (0)