cozystack/api/v1alpha1
Aleksei Sviridkin 104b3b3d2b
feat(operator): add per-package upgradeCRDs policy for HelmRelease
Add an opt-in UpgradeCRDs field to ComponentInstall that maps to
HelmRelease.Spec.Upgrade.CRDs, allowing a PackageSource component to
declare how Flux should handle CRDs from the chart's crds/ directory
on upgrade.

The helm-controller default on upgrade is Skip, which means new CRDs
added between chart versions never reach existing clusters and must be
applied manually. Setting upgradeCRDs: CreateReplace makes Flux apply
new CRDs declaratively with the chart.

Allowed values are restricted to Skip, Create, CreateReplace via a
kubebuilder enum marker. Empty / unset preserves the existing Flux
default, so all existing PackageSource resources keep working.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-04-27 11:19:29 +03:00
..
applicationdefinitions_types.go refactor(api): rename CozystackResourceDefinition to ApplicationDefinition 2026-01-15 22:35:56 +01:00
groupversion_info.go Introduce cozystack-controller (#560) 2025-01-09 12:24:51 +01:00
package_types.go [cozystack-operator] Add Package and PackageSource reconcilers 2025-12-30 11:55:21 +01:00
packagesource_types.go feat(operator): add per-package upgradeCRDs policy for HelmRelease 2026-04-27 11:19:29 +03:00
workload_types.go Introduce cozystack-controller (#560) 2025-01-09 12:24:51 +01:00
workloadmonitor_types.go Introduce cozystack-controller (#560) 2025-01-09 12:24:51 +01:00
zz_generated.deepcopy.go refactor(api): rename CozystackResourceDefinition to ApplicationDefinition 2026-01-15 22:35:56 +01:00