fixup kubectl test

This commit is contained in:
Jordan Liggitt
2019-11-26 13:13:38 -05:00
parent a1595da534
commit deb75da17b
2 changed files with 20 additions and 7 deletions

View File

@@ -51,6 +51,10 @@ var recognizedTableVersions = map[schema.GroupVersionKind]bool{
metav1.SchemeGroupVersion.WithKind("Table"): true,
}
// assert the types are identical, since we're decoding both types into a metav1.Table
var _ metav1.Table = metav1beta1.Table{}
var _ metav1beta1.Table = metav1.Table{}
func decodeIntoTable(obj runtime.Object) (runtime.Object, error) {
event, isEvent := obj.(*metav1.WatchEvent)
if isEvent {