Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func (c *Config) Token() string {
}

// FunctionInvokeToken returns the token used for runtime function invocation.
// Local mode supplies service and anon keys for invoke endpoints; cloud falls
// back to the normal configured token until a project invoke key is available.
// Local mode supplies credentials from local info; cloud uses the configured
// token from `volcano login` or VOLCANO_TOKEN and relies on hosting to authorize it.
func (c *Config) FunctionInvokeToken() string {
if strings.TrimSpace(c.ServiceKey) != "" {
return c.ServiceKey
Expand Down
Loading