Skip to content

Commit 1c7d581

Browse files
authored
chore: Fix storage CLI arguments for Goldfish UI (#19823)
1 parent adaf758 commit 1c7d581

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/sources/shared/configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,19 @@ ui:
129129
[type: <string> | default = ""]
130130

131131
# CloudSQL host for Goldfish database.
132-
# CLI flag: -ui.goldfish.cloudsql.host
132+
# CLI flag: -ui.goldfish.storage.cloudsql.host
133133
[cloudsql_host: <string> | default = "127.0.0.1"]
134134

135135
# CloudSQL port for Goldfish database.
136-
# CLI flag: -ui.goldfish.cloudsql.port
136+
# CLI flag: -ui.goldfish.storage.cloudsql.port
137137
[cloudsql_port: <int> | default = 3306]
138138

139139
# CloudSQL database name for Goldfish.
140-
# CLI flag: -ui.goldfish.cloudsql.database
140+
# CLI flag: -ui.goldfish.storage.cloudsql.database
141141
[cloudsql_database: <string> | default = "goldfish"]
142142

143143
# CloudSQL username for Goldfish database.
144-
# CLI flag: -ui.goldfish.cloudsql.user
144+
# CLI flag: -ui.goldfish.storage.cloudsql.user
145145
[cloudsql_user: <string> | default = ""]
146146

147147
# RDS endpoint (host:port)

pkg/ui/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
6767
f.StringVar(&cfg.Goldfish.Storage.Type, "ui.goldfish.storage.type", "", "Storage backend type (cloudsql, rds, or empty for no storage)")
6868

6969
// CloudSQL flags
70-
f.StringVar(&cfg.Goldfish.Storage.CloudSQLUser, "ui.goldfish.cloudsql.user", "", "CloudSQL username for Goldfish database.")
71-
f.StringVar(&cfg.Goldfish.Storage.CloudSQLHost, "ui.goldfish.cloudsql.host", "127.0.0.1", "CloudSQL host for Goldfish database.")
72-
f.IntVar(&cfg.Goldfish.Storage.CloudSQLPort, "ui.goldfish.cloudsql.port", 3306, "CloudSQL port for Goldfish database.")
73-
f.StringVar(&cfg.Goldfish.Storage.CloudSQLDatabase, "ui.goldfish.cloudsql.database", "goldfish", "CloudSQL database name for Goldfish.")
70+
f.StringVar(&cfg.Goldfish.Storage.CloudSQLUser, "ui.goldfish.storage.cloudsql.user", "", "CloudSQL username for Goldfish database.")
71+
f.StringVar(&cfg.Goldfish.Storage.CloudSQLHost, "ui.goldfish.storage.cloudsql.host", "127.0.0.1", "CloudSQL host for Goldfish database.")
72+
f.IntVar(&cfg.Goldfish.Storage.CloudSQLPort, "ui.goldfish.storage.cloudsql.port", 3306, "CloudSQL port for Goldfish database.")
73+
f.StringVar(&cfg.Goldfish.Storage.CloudSQLDatabase, "ui.goldfish.storage.cloudsql.database", "goldfish", "CloudSQL database name for Goldfish.")
7474

7575
// RDS flags
7676
f.StringVar(&cfg.Goldfish.Storage.RDSEndpoint, "ui.goldfish.storage.rds.endpoint", "", "RDS endpoint (host:port)")

0 commit comments

Comments
 (0)