Fix v1beta1 typos in v1beta2 conversions

This commit is contained in:
Paul Morie 2015-05-06 11:21:39 -04:00
parent 302de065f2
commit 5bcdecbb6b

View File

@ -309,7 +309,7 @@ func init() {
} }
return nil return nil
}, },
// Converts internal Container to v1beta1.Container. // Converts internal Container to v1beta2.Container.
// Fields 'CPU' and 'Memory' are not present in the internal Container object. // Fields 'CPU' and 'Memory' are not present in the internal Container object.
// Hence the need for a custom conversion function. // Hence the need for a custom conversion function.
func(in *newer.Container, out *Container, s conversion.Scope) error { func(in *newer.Container, out *Container, s conversion.Scope) error {
@ -402,7 +402,7 @@ func init() {
return nil return nil
}, },
// Converts v1beta1.Container to internal newer.Container. // Converts v1beta2.Container to internal newer.Container.
// Fields 'CPU' and 'Memory' are not present in the internal newer.Container object. // Fields 'CPU' and 'Memory' are not present in the internal newer.Container object.
// Hence the need for a custom conversion function. // Hence the need for a custom conversion function.
func(in *Container, out *newer.Container, s conversion.Scope) error { func(in *Container, out *newer.Container, s conversion.Scope) error {
@ -1575,7 +1575,7 @@ func init() {
// If one of the conversion functions is malformed, detect it immediately. // If one of the conversion functions is malformed, detect it immediately.
panic(err) panic(err)
} }
err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "Namespace", err = newer.Scheme.AddFieldLabelConversionFunc("v1beta2", "Namespace",
func(label, value string) (string, string, error) { func(label, value string) (string, string, error) {
switch label { switch label {
case "status.phase": case "status.phase":