Skip to content

Commit

Permalink
feat: pass command line argument "--user-provider" to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Feb 27, 2024
1 parent 038c2b8 commit d72d646
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pkg/components/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ func (f *frontend) BuildArgs(params ...interface{}) []string {
if len(f.config.Config) > 0 {
args = append(args, fmt.Sprintf("-c=%s", f.config.Config))
}

if len(f.config.UserProvider) > 0 {
args = append(args, fmt.Sprintf("--user-provider=%s", f.config.UserProvider))
}
return args
}

Expand Down
7 changes: 4 additions & 3 deletions pkg/config/baremetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ type Frontend struct {
MysqlAddr string `yaml:"mysqlAddr" validate:"omitempty,hostname_port"`
OpentsdbAddr string `yaml:"opentsdbAddr" validate:"omitempty,hostname_port"`

Replicas int `yaml:"replicas" validate:"gt=0"`
Config string `yaml:"config" validate:"omitempty,filepath"`
LogLevel string `yaml:"logLevel"`
Replicas int `yaml:"replicas" validate:"gt=0"`
Config string `yaml:"config" validate:"omitempty,filepath"`
LogLevel string `yaml:"logLevel"`
UserProvider string `yaml:"userProvider"`
}

type MetaSrv struct {
Expand Down

0 comments on commit d72d646

Please sign in to comment.