Skip to content

Commit

Permalink
Change the name from BackendSource to CredentialSource
Browse files Browse the repository at this point in the history
Signed-off-by: Guijie Wang <[email protected]>
  • Loading branch information
Guijie Wang committed Aug 14, 2023
1 parent 7616702 commit 08230ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/daemon/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type DaemonCommand struct {
LogRotationSize int `type:"param" name:"log-rotation-size"`
Supervisor string `type:"param" name:"supervisor"`
LogFile string `type:"param" name:"log-file"`
BackendSource string `type:"param" name:"backend-source"`
CredentialSource string `type:"param" name:"credential-source"`
}

// Build exec style command line
Expand Down Expand Up @@ -184,8 +184,8 @@ func WithUpgrade() Opt {
}
}

func WithBackendSource(source string) Opt {
func WithCredentialSource(source string) Opt {
return func(cmd *DaemonCommand) {
cmd.BackendSource = source
cmd.CredentialSource = source
}
}

Check failure on line 191 in pkg/daemon/command/command.go

View workflow job for this annotation

GitHub Actions / Build and Lint

syntax error: unexpected var after top level declaration
2 changes: 1 addition & 1 deletion pkg/manager/daemon_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (m *Manager) BuildDaemonCommand(d *daemon.Daemon, bin string, upgrade bool)
if config.IsCredentialSourceEnabled() {
configApiPath := fmt.Sprintf(endpointGetBackendConfig, d.States.ID)
cmdOpts = append(cmdOpts,
command.WithBackendSource(config.SystemControllerAddress() + configApiPath),
command.WithCredentialSource(config.SystemControllerAddress() + configApiPath),
)
}
default:
Expand Down

0 comments on commit 08230ad

Please sign in to comment.