Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Feb 20, 2024
1 parent a46196d commit c448de6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flyteplugins/go/tasks/plugins/webapi/agent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) {
var agentDeployments []*AgentDeployment

// Ensure that the old configuration is backward compatible
for taskType, agentDeploymentId := range cfg.AgentForTaskTypes {
agent := Agent{AgentDeployment: cfg.AgentDeployments[agentDeploymentId], IsSync: false}
for taskType, agentDeploymentID := range cfg.AgentForTaskTypes {
agent := Agent{AgentDeployment: cfg.AgentDeployments[agentDeploymentID], IsSync: false}
agentRegistry[taskType] = map[int32]*Agent{defaultTaskTypeVersion: &agent}
}

Expand Down
4 changes: 2 additions & 2 deletions flyteplugins/go/tasks/plugins/webapi/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ type Config struct {
// The default agent if there does not exist a more specific matching against task types
DefaultAgent AgentDeployment `json:"defaultAgent" pflag:",The default agent."`

// The agents used to match against specific task types. {AgentDeploymentId: AgentDeployment}
// The agents used to match against specific task types. {agentDeploymentID: AgentDeployment}
AgentDeployments map[string]*AgentDeployment `json:"agents" pflag:",The agents."`

// Maps task types to their agents. {TaskType: AgentDeploymentId}
// Maps task types to their agents. {TaskType: agentDeploymentID}
AgentForTaskTypes map[string]string `json:"agentForTaskTypes" pflag:"-,"`

// SupportedTaskTypes is a list of task types that are supported by this plugin.
Expand Down

0 comments on commit c448de6

Please sign in to comment.