mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fieldmanager: Remove obsolete comment
This commit is contained in:
parent
adfc65ec23
commit
ad65b25cc3
@ -74,17 +74,13 @@ func (c *typeConverter) TypedToObject(value *typed.TypedValue) (runtime.Object,
|
|||||||
return valueToObject(value.AsValue())
|
return valueToObject(value.AsValue())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type deducedTypeConverter struct{}
|
||||||
|
|
||||||
// DeducedTypeConverter is a TypeConverter for CRDs that don't have a
|
// DeducedTypeConverter is a TypeConverter for CRDs that don't have a
|
||||||
// schema. It does implement the same interface though (and create the
|
// schema. It does implement the same interface though (and create the
|
||||||
// same types of objects), so that everything can still work the same.
|
// same types of objects), so that everything can still work the same.
|
||||||
// CRDs are merged with all their fields being "atomic" (lists
|
// CRDs are merged with all their fields being "atomic" (lists
|
||||||
// included).
|
// included).
|
||||||
//
|
|
||||||
// Note that this is not going to be sufficient for converting to/from
|
|
||||||
// CRDs that have a schema defined (we don't support that schema yet).
|
|
||||||
// TODO(jennybuckley): Use the schema provided by a CRD if it exists.
|
|
||||||
type deducedTypeConverter struct{}
|
|
||||||
|
|
||||||
func NewDeducedTypeConverter() TypeConverter {
|
func NewDeducedTypeConverter() TypeConverter {
|
||||||
return deducedTypeConverter{}
|
return deducedTypeConverter{}
|
||||||
}
|
}
|
||||||
|
@ -30,10 +30,6 @@ type TypeConverter = internal.TypeConverter
|
|||||||
// create the same types of objects), so that everything can still work
|
// create the same types of objects), so that everything can still work
|
||||||
// the same. CRDs are merged with all their fields being "atomic" (lists
|
// the same. CRDs are merged with all their fields being "atomic" (lists
|
||||||
// included).
|
// included).
|
||||||
//
|
|
||||||
// Note that this is not going to be sufficient for converting to/from
|
|
||||||
// CRDs that have a schema defined (we don't support that schema yet).
|
|
||||||
// TODO(jennybuckley): Use the schema provided by a CRD if it exists.
|
|
||||||
func NewDeducedTypeConverter() TypeConverter {
|
func NewDeducedTypeConverter() TypeConverter {
|
||||||
return internal.NewDeducedTypeConverter()
|
return internal.NewDeducedTypeConverter()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user