You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provider/flux-system/alertmanager dry-run failed: failed to create typed patch object (flux-system/alertmanager; notification.toolkit.fluxcd.io/v1beta3, Kind=Provider): .spec.interval: field not declared in schema...
Expected behavior
Provider v1beta3 API should be backward compatible with v1beta2 and the upgrade should pass without errors.
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v2.2.0
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. Sorry for the inconvenience. .spec.interval was an optional field in v1beta2 Provider unlike other flux API objects. It was unusual to set, hence missed in our upgrade testing. I tried reproducing it and this happens only when interval is explicitly set.
I've created fluxcd/notification-controller#683 to add interval back in v1beta3 Provider. We'll do a patch release which should fix this.
The work around for it is quite literally to remove the field from your Provider resources, as it is deprecated and will (even when added back) be no longer used.
Describe the bug
Upgrading a Provider from v1beta2 to v1beta3 API fails if the Provider has an interval field set in its spec.
Steps to reproduce
Upgrade the following Provider from v1beta2 to v1beta3
The upgrade fails with
Expected behavior
Provider v1beta3 API should be backward compatible with v1beta2 and the upgrade should pass without errors.
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
v2.2.0
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: