mirror of
https://github.com/openshift/installer.git
synced 2026-02-07 03:47:13 +01:00
The old *PlatformType are fromcccbb37a(Generate installation assets via a dependency graph, 2018-08-10, #120), but since476be073(pkg/asset: use vendored cluster-api instead of go templates, 2018-10-30, #573), we've had variables for the name strings in the more central pkg/types. With this commit, we drop the more peripheral forms. I've also pushed the types.PlatformName{Platform} variables down into types.{platform}.Name at Ahbinav's suggestion [1]. I've added a unit test to enforce sorting in PlatformNames, because the order is required by sort.SearchStrings in queryUserForPlatform. [1]: https://github.com/openshift/installer/pull/659#discussion_r232849156