mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
Two defects in the generated ApplicationDefinition and the certificate template. The regenerated openAPISchema had lost the x-cozystack-options extension on storageClass that values.schema.json still carries, which is what drives the storage class picker in the dashboard form. The schema was generated with cozyvalues-gen 1.5.0 while CI pins 1.6.0, and the older release drops the extension. Regenerated with the pinned version, which restores it. The cluster-domain lookup indexed .Values._cluster directly, so a render where the platform injects no _cluster map failed with "index of untyped nil" before the documented cozy.local fallback could apply. Default the parent map so the fallback is actually reachable, and extend the test to cover an absent map as well as an empty domain — the previous test only exercised a domain set to the empty string, which never reached the failing path. Signed-off-by: Aleksei Sviridkin <f@lex.la> Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
How to test packages local
cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd