SanitizeExtensionNameForVolume returns a prefixed, RFC 1123 compliant volume name for an extension. The 4-character "ext-" prefix is what bounds ExtensionConfiguration.Name to MaxLength=59 (RFC 1123 label limit of 63, minus the prefix). The upgrade-target counterpart uses an equally-sized "new-" pr
(extensionName string)
| 336 | // upgrade-target counterpart uses an equally-sized "new-" prefix on purpose, |
| 337 | // so adjusting either one requires updating the API's MaxLength too. |
| 338 | func SanitizeExtensionNameForVolume(extensionName string) string { |
| 339 | return "ext-" + strings.ReplaceAll(extensionName, "_", "-") |
| 340 | } |
| 341 | |
| 342 | // SanitizeExtensionNameForUpgradeTargetVolume returns the RFC 1123 compliant |
| 343 | // volume name for a target-version extension during a major upgrade. The |
no outgoing calls
no test coverage detected