cozystack/internal/lineagecontrollerwebhook
Andrei Kvapil 669bf3d2f5
[registry] Add application labels and update filtering mechanism
- Add three application metadata labels to HelmRelease:
  - apps.cozystack.io/application.kind
  - apps.cozystack.io/application.group
  - apps.cozystack.io/application.name

- 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 mapping configuration

- Add functionality to update HelmRelease chart from CozystackResourceDefinition
  using label selectors

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2025-12-19 10:13:36 +01:00
..
config.go [registry] Add application labels and update filtering mechanism 2025-12-19 10:13:36 +01:00
controller.go [registry] Add application labels and update filtering mechanism 2025-12-19 10:13:36 +01:00
matcher.go [controller, api] Select ingresses and services 2025-10-06 11:31:09 +03:00
types.go [cozystack-controller] Ancestor tracking webhook 2025-09-24 12:07:18 +03:00
webhook.go [lineage] Separate webhook from cozy controller 2025-10-14 10:50:28 +03:00