Skip to content

Commit c937a26

Browse files
author
jmccormick2001
committed
remove --managed from pgo user command, it now lives under pgo create user
1 parent b917790 commit c937a26

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

apiserver/userservice/userimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var defaultPasswordLength = 8
5656

5757
// User ...
5858
// pgo user --change-password=bob --db=userdb
59-
// --expired=7 --managed=true --selector=env=research --update-passwords=true
59+
// --expired=7 --selector=env=research --update-passwords=true
6060
// --valid-days=30
6161
func User(request *msgs.UserRequest) msgs.UserResponse {
6262
var err error

hugo/content/getting-started/_index.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,9 +1259,6 @@ Grants the user access to a database.
12591259
Specifies number of days to check for expiring passwords when
12601260
using --update-passwords flag to update passwords.
12611261
1262-
|`--managed` |N/A |N/A |
1263-
Creates a user with secrets that can be managed by the Operator.
1264-
12651262
|`--selector` |-s |String |
12661263
The selector to use for cluster filtering.
12671264

pgo/cmd/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"github.com/spf13/cobra"
2323
)
2424

25+
var ManagedUser bool
2526
var ContainerResources string
2627
var ReplicaStorageConfig, StorageConfig string
2728
var CustomConfig string

pgo/cmd/user.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ var Expired string
4646
// UpdatePasswords update passwords flag
4747
var UpdatePasswords bool
4848

49-
// ManagedUser managed user flag
50-
var ManagedUser bool
51-
5249
var userCmd = &cobra.Command{
5350
Use: "user",
5451
Short: "Manage PostgreSQL users",
@@ -72,7 +69,6 @@ func init() {
7269
userCmd.Flags().StringVarP(&UserDBAccess, "db", "", "", "Grants the user access to a database.")
7370
userCmd.Flags().StringVarP(&Password, "password", "", "", "Specifies the user password when updating a user password or creating a new user.")
7471
userCmd.Flags().BoolVarP(&UpdatePasswords, "update-passwords", "", false, "Performs password updating on expired passwords.")
75-
userCmd.Flags().BoolVarP(&ManagedUser, "managed", "", false, "Creates a user with secrets that can be managed by the Operator.")
7672

7773
}
7874

0 commit comments

Comments
 (0)