cozystack/packages/apps
Andrei Kvapil a939b2bbd0
[registry] Add application labels and update filtering mechanism (#1707)
This change is extracted from
- https://github.com/cozystack/cozystack/pull/1641

and reworked to work standalone

## What this PR does

This PR extracts changes from the
https://github.com/cozystack/cozystack/pull/1641. It adds application
metadata labels to HelmReleases and updates the filtering mechanism to
use labels instead of chart/sourceRef matching.

Changes:
- Add three application metadata labels
(`apps.cozystack.io/application.kind`,
`apps.cozystack.io/application.group`,
`apps.cozystack.io/application.name`) when creating/updating HelmRelease
via Cozystack-API
- Replace `shouldIncludeHelmRelease` filtering with label-based
filtering in Get, List, and Update methods
- Always add kind and group label requirements in List for precise
filtering
- Update CozystackResourceDefinitionController to watch only
HelmReleases with `cozystack.io/ui=true` label
- Update LineageControllerWebhook to extract metadata directly from
HelmRelease labels instead of using chart mapping configuration
- Add functionality to update HelmRelease chart from
CozystackResourceDefinition using label selectors

### Release note

```release-note
[registry] Add application labels and update filtering mechanism to use label-based filtering instead of chart/sourceRef matching
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added application metadata labels (kind, group, name) and exported
label keys for HelmRelease identification.
* New reconciler keeps HelmRelease charts in sync with application CRDs.

* **Refactor**
* Mapping, listing and selection moved to label-driven logic;
reconciliation responsibilities split so core reconciler focuses on
restart/debounce while a separate reconciler updates HelmReleases.

* **Chores**
* Migration script to backfill application labels on existing
HelmReleases.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-01-09 14:52:42 +01:00
..
bucket [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
clickhouse [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
ferretdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
foundationdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
http-cache Release v0.38.1 (#1668) 2025-11-27 15:53:53 +01:00
kafka [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
kubernetes Granular kubernetes application extensions dependencies (#1683) 2025-12-05 14:44:53 +01:00
mysql [mariadb] Add version management system with automated version updates 2025-12-02 00:36:00 +01:00
nats Use dig function to check for existing secret in NATS app template and prevent nil indexing 2025-11-05 18:12:23 -06:00
postgres [postgres] Add version management system with automated version updates 2025-12-01 23:56:55 +01:00
rabbitmq [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
redis [redis] Add version management system with automated version updates 2025-12-02 00:34:52 +01:00
tcp-balancer [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
tenant [registry] Add application labels and update filtering mechanism (#1707) 2026-01-09 14:52:42 +01:00
virtual-machine [virtual-machine,vm-instance] Add nodeAffinity for Windows VMs based on scheduling config (#1693) 2026-01-09 14:52:41 +01:00
vm-disk [virtual-machine] Improve check for resizing job (#1688) 2026-01-09 14:52:39 +01:00
vm-instance [virtual-machine,vm-instance] Add nodeAffinity for Windows VMs based on scheduling config (#1693) 2026-01-09 14:52:41 +01:00
vpc [vpc] Fix access to subnet details configmap 2025-11-17 19:00:41 +03:00
vpn [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
Makefile Allign timeouts for HelmReleases 2025-09-24 16:54:17 +02:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

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