From 5903f6ff397b880ef14522bf8b7c978bb03cb3c7 Mon Sep 17 00:00:00 2001 From: Prashanth Balasubramanian Date: Thu, 2 Apr 2015 18:37:28 -0700 Subject: [PATCH] Register field conversion function under the right type name --- pkg/api/v1beta1/conversion.go | 2 +- pkg/api/v1beta2/conversion.go | 2 +- pkg/api/v1beta3/conversion.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/v1beta1/conversion.go b/pkg/api/v1beta1/conversion.go index e0409eccf2e54..3e29dc2301f69 100644 --- a/pkg/api/v1beta1/conversion.go +++ b/pkg/api/v1beta1/conversion.go @@ -1550,7 +1550,7 @@ func init() { // If one of the conversion functions is malformed, detect it immediately. panic(err) } - err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "Minion", + err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "Node", func(label, value string) (string, string, error) { switch label { case "name": diff --git a/pkg/api/v1beta2/conversion.go b/pkg/api/v1beta2/conversion.go index 6a0435d90d67c..45521bf6d49a4 100644 --- a/pkg/api/v1beta2/conversion.go +++ b/pkg/api/v1beta2/conversion.go @@ -1475,7 +1475,7 @@ func init() { // If one of the conversion functions is malformed, detect it immediately. panic(err) } - err = newer.Scheme.AddFieldLabelConversionFunc("v1beta2", "Minion", + err = newer.Scheme.AddFieldLabelConversionFunc("v1beta2", "Node", func(label, value string) (string, string, error) { switch label { case "name": diff --git a/pkg/api/v1beta3/conversion.go b/pkg/api/v1beta3/conversion.go index 546b70db39c3d..7974741345ea7 100644 --- a/pkg/api/v1beta3/conversion.go +++ b/pkg/api/v1beta3/conversion.go @@ -39,7 +39,7 @@ func init() { // If one of the conversion functions is malformed, detect it immediately. panic(err) } - err = newer.Scheme.AddFieldLabelConversionFunc("v1beta3", "Minion", + err = newer.Scheme.AddFieldLabelConversionFunc("v1beta3", "Node", func(label, value string) (string, string, error) { switch label { case "name":