cozystack/internal/controller
Andrei Kvapil 2d1c8aae02
feat(platform): add flux-plunger controller
Add flux-plunger controller to automatically fix HelmRelease resources
with "has no deployed releases" error.

The controller watches HelmRelease resources and performs the following:
- Detects HelmRelease with "has no deployed releases" error
- Suspends the HelmRelease with flux-client-side-apply field manager
- Deletes the latest Helm release secret
- Updates annotation with processed version to prevent recursive deletion
- Unsuspends the HelmRelease to allow Flux to retry

Special handling for suspended HelmRelease:
- If suspend=true and latest+1==processed: removes suspend
- Otherwise: skips processing as suspended by external process

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-01-19 13:20:08 +01:00
..
dashboard refactor(api): rename CozystackResourceDefinition to ApplicationDefinition 2026-01-15 22:35:56 +01:00
fluxplunger feat(platform): add flux-plunger controller 2026-01-19 13:20:08 +01:00
kubeovnplunger [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
applicationdefinition_controller.go refactor(api): rename CozystackResourceDefinition to ApplicationDefinition 2026-01-15 22:35:56 +01:00
applicationdefinition_helmreconciler.go refactor(api): rename CozystackResourceDefinition to ApplicationDefinition 2026-01-15 22:35:56 +01:00
suite_test.go Move project from aenix-io to cozystack repository 2025-03-10 21:16:58 +01:00
workload_controller.go [cozystack-controller] Refactor errors 2025-07-21 18:46:48 +02:00
workload_controller_test.go [cozystack-controller] Fix deleting workloads 2025-07-21 17:56:18 +02:00
workloadmonitor_controller.go [cozystack-controller] Refactor errors 2025-07-21 18:46:48 +02:00