code: func ConvertTolerationToAMap(in []api.Toleration) map[key]api.Toleration {
  	out := map[key]api.Toleration{}
  	for i := range in {
  		out[key{in[i].Key, in[i].Effect}] = in[i]
  	}
  	return out
  }
docs: // ConvertTolerationToAMap converts toleration list into a map[string]api.Toleration