upgrade jobs (1.1.1 to main) are broken due to flux CRD changes
Summary
The issue has been observed in https://gitlab.com/sylva-projects/sylva-core/-/jobs/7501990524
📜 Update sylva-units Helm release and associated resources
00:02
Warning: resource namespaces/sylva-system is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
namespace/sylva-system configured
configmap/sylva-units-values configured
configmap/capm3-virt-ha-values created
configmap/capm3-virt-values created
secret/sylva-units-secrets configured
gitrepository.source.toolkit.fluxcd.io/sylva-core configured
error: resource mapping not found for name: "sylva-units" namespace: "sylva-system" from "STDIN": no matches for kind "HelmRelease" in version "helm.toolkit.fluxcd.io/v2"
ensure CRDs are installed first
We should figure-out a way to properly handle this case in our scripts.