fieldmanager: Remove obsolete comment

This commit is contained in:
Antoine Pelisse 2022-12-15 16:42:40 -08:00
parent adfc65ec23
commit ad65b25cc3
2 changed files with 2 additions and 10 deletions

View File

@ -74,17 +74,13 @@ func (c *typeConverter) TypedToObject(value *typed.TypedValue) (runtime.Object,
return valueToObject(value.AsValue())
}
type deducedTypeConverter struct{}
// DeducedTypeConverter is a TypeConverter for CRDs that don't have a
// schema. It does implement the same interface though (and create the
// same types of objects), so that everything can still work the same.
// CRDs are merged with all their fields being "atomic" (lists
// 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 {
return deducedTypeConverter{}
}

View File

@ -30,10 +30,6 @@ type TypeConverter = internal.TypeConverter
// create the same types of objects), so that everything can still work
// the same. CRDs are merged with all their fields being "atomic" (lists
// 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 {
return internal.NewDeducedTypeConverter()
}