Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created December 9, 2016 23:02
Show Gist options
  • Select an option

  • Save jayunit100/305d9ac81c23185e156bd8e2bb2c1495 to your computer and use it in GitHub Desktop.

Select an option

Save jayunit100/305d9ac81c23185e156bd8e2bb2c1495 to your computer and use it in GitHub Desktop.
// output:
// 0
// 0
fmt.Println(len(e.Spec.SchedulingMismatchedPredicateResults))
fmt.Println(len(a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults))
// output:
// false
fmt.Println(reflect.DeepEqual(
e.Spec.SchedulingMismatchedPredicateResults,
a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults))
// output:
// map[string]int64
// map[string]int64
fmt.Println(reflect.TypeOf(e.Spec.SchedulingMismatchedPredicateResults))
fmt.Println(reflect.TypeOf(a.(*v1.Pod).Spec.SchedulingMismatchedPredicateResults))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment