Skip to content

Commit

Permalink
Fix containerd sock path warning
Browse files Browse the repository at this point in the history
Will eliminate warning 1 from k3s-io#2471

Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Nov 3, 2020
1 parent b1d1235 commit d53240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func get(envInfo *cmds.Agent, proxy proxy.Proxy) (*config.Node, error) {
}

if !nodeConfig.Docker && nodeConfig.ContainerRuntimeEndpoint == "" {
nodeConfig.AgentConfig.RuntimeSocket = nodeConfig.Containerd.Address
nodeConfig.AgentConfig.RuntimeSocket = "unix://" + nodeConfig.Containerd.Address
} else {
nodeConfig.AgentConfig.RuntimeSocket = nodeConfig.ContainerRuntimeEndpoint
nodeConfig.AgentConfig.CNIPlugin = true
Expand Down

0 comments on commit d53240b

Please sign in to comment.