flux2 icon indicating copy to clipboard operation
flux2 copied to clipboard

Kustomization failure. HelmRepository dry-run failed: .spec.provider: field not declared in schema

Open kamalverma1 opened this issue 1 year ago • 1 comments

Describe the bug

Hi I am using fluxcd helmchart version 2.13.0 and recently tried to upgrade the api version of HelmRepository from v1beta1 to v1. After updating the API version, the kustomization fails with the below error:

HelmRepository/<namespace>/<helmrelease_name> dry-run failed: .spec.provider: field not declared in schema

As I checked the .spec.provider parameter is not present in crd version v1beta1 but is present in v1beta2 and v1.

Steps to reproduce

  1. Install flux helmchart version 2.13.0.
  2. Apply a helmRepository Resource with v1beta1 version and update the version to v1.

Expected behavior

The updgrading of the flux api version from v1beta1 to v1 should work without error.

Screenshots and recordings

No response

OS / Distro

Linux

Flux version

2.3.0

Flux check

K8s version 1.29.4

Git provider

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

kamalverma1 avatar Jun 28 '24 08:06 kamalverma1

After removing the default value "generic" of provider in helmrepository crd, the error was gone. I am not sure why is it added as a required field. And even if it is added as default, it should not how the error.

kamalverma1 avatar Jul 04 '24 07:07 kamalverma1