cozystack/cmd
Aleksei Sviridkin 4843a617bc
fix(operator): skip PackageSource on empty URL, add comprehensive tests
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>
2026-02-19 18:31:49 +03:00
..
backup-controller [backups] 2026-02-04 15:50:23 +03:00
backupstrategy-controller Merge branch 'feat/backup-work-consolidation' into feat/backup-recovery 2026-02-03 21:20:59 +04:00
cozypkg feat(cozypkg): add cross-platform build targets with version injection 2026-01-15 17:18:01 +01:00
cozystack-api [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
cozystack-controller [platform] Make cozystack-api reconciliation always use Deployment 2026-02-14 01:59:40 +01:00
cozystack-operator fix(operator): skip PackageSource on empty URL, add comprehensive tests 2026-02-19 18:31:49 +03:00
flux-plunger feat(platform): add flux-plunger controller 2026-01-19 13:20:08 +01:00
kubeovn-plunger [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
lineage-controller-webhook [lineage] Separate webhook from cozy controller 2025-10-14 10:50:28 +03:00