ConvertToVersion converts the given *external* input object to the given output *external* output group-version.
(in runtime.Object, outVersion schema.GroupVersion)
| 188 | |
| 189 | // ConvertToVersion converts the given *external* input object to the given output *external* output group-version. |
| 190 | func (c *ScaleConverter) ConvertToVersion(in runtime.Object, outVersion schema.GroupVersion) (runtime.Object, error) { |
| 191 | scaleInt, err := c.scheme.ConvertToVersion(in, c.internalVersioner) |
| 192 | if err != nil { |
| 193 | return nil, err |
| 194 | } |
| 195 | |
| 196 | return c.scheme.ConvertToVersion(scaleInt, outVersion) |
| 197 | } |