Skip to content

Commit

Permalink
Update pkg/agent/config/config.go
Browse files Browse the repository at this point in the history
Co-Authored-By: juliens <julien.salleyron@gmail.com>
  • Loading branch information
ibuildthecloud and juliens authored Mar 4, 2019
1 parent 164b89b commit 4475456
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 @@ -161,7 +161,7 @@ func get(envInfo *cmds.Agent) (*config.Node, error) {
ContainerRuntimeEndpoint: envInfo.ContainerRuntimeEndpoint,
}
nodeConfig.LocalAddress = localAddress(controlConfig)
nodeConfig.Images = "/var/lib/rancher/k3s/agent/images"
nodeConfig.Images = filepath.Join(envInfo.DataDir, "images")
nodeConfig.AgentConfig.NodeIP = nodeIP
nodeConfig.AgentConfig.NodeName = nodeName
nodeConfig.AgentConfig.ClusterDNS = controlConfig.ClusterDNS
Expand Down

0 comments on commit 4475456

Please sign in to comment.