INNER CODE UNIT · Go
affinity
GalleyBytes/terraform-operator · pkg/controllers/terraform_controller.go:1720
affinity = obj.(*corev1.Affinity)
}
}
if r.InheritNodeSelector {
if obj, found := r.Cache.Get(r.NodeSelectorCacheKey); found {
nodeSelector = obj.(map[string]string)
}
}
if r.InheritTolerations {
if obj, found := r.Cache.Get(r.TolerationsCacheKey); found {
tolerations = obj.([]corev1.Toleration)
}
}
return affinity, nodeSelector, tolerations
}
// Define a set of TaskOptions specific for the plugin task