mirror of
https://github.com/cozystack/cozystack.git
synced 2026-03-02 21:18:54 +00:00
Guard PackageSource creation on platformSourceURL != "" to avoid dangling SourceRef when no Flux source resource exists. Add tests covering all new and modified functions: - parsePlatformSourceURL (OCI, HTTPS, SSH, empty, unsupported scheme) - parseRefSpec (single/multi values, whitespace, equals in value, missing equals, empty key/value, trailing comma) - validateOCIRef / validateGitRef (valid keys, invalid keys, format) - generateOCIRepository / generateGitRepository (with ref, no ref, invalid ref) - installPlatformPackageSource variant valuesFiles validation - installPlatformPackageSource custom name Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>