in pkg/agent/baker.go [1041:1053]
func HasDataDir(config *datamodel.NodeBootstrappingConfiguration) bool {
cs := config.ContainerService
profile := config.AgentPoolProfile
if profile != nil && profile.KubernetesConfig != nil && profile.KubernetesConfig.ContainerRuntimeConfig != nil &&
profile.KubernetesConfig.ContainerRuntimeConfig[datamodel.ContainerDataDirKey] != "" {
return true
}
if profile.KubeletDiskType == datamodel.TempDisk {
return true
}
return cs.Properties.OrchestratorProfile.KubernetesConfig.ContainerRuntimeConfig != nil &&
cs.Properties.OrchestratorProfile.KubernetesConfig.ContainerRuntimeConfig[datamodel.ContainerDataDirKey] != ""
}