mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #7838 from pmorie/fix
Fix v1beta1 typos in v1beta2 conversions
This commit is contained in:
commit
ddfc37eddc
@ -309,7 +309,7 @@ func init() {
|
||||
}
|
||||
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.
|
||||
// Hence the need for a custom conversion function.
|
||||
func(in *newer.Container, out *Container, s conversion.Scope) error {
|
||||
@ -402,7 +402,7 @@ func init() {
|
||||
|
||||
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.
|
||||
// Hence the need for a custom conversion function.
|
||||
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.
|
||||
panic(err)
|
||||
}
|
||||
err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "Namespace",
|
||||
err = newer.Scheme.AddFieldLabelConversionFunc("v1beta2", "Namespace",
|
||||
func(label, value string) (string, string, error) {
|
||||
switch label {
|
||||
case "status.phase":
|
||||
|
Loading…
Reference in New Issue
Block a user