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
Flux seems to cache the content of the Discovery endpoint, without any mechanism to invalidate. When CRDs are updated in a way in which new paths need to be used, the controller doesn't have a way of recovering without being recycled
Steps to reproduce
Install CRD
Restart Flux pod
Update CRD in a way in which the .spec.names.plural is updated
Use a Kustomization object to create a CR of the GVK defined in the CRD
Expected behavior
Expect Flux, after initial failure to create the object
103s Warning ReconciliationFailed kustomization/bar-resources FooKind/ns/object-foo not found: the server could not find the requested resource (patch plural.group object-foo)
to invalidate the cache and pull the API resources available on the server without having to delete the pod
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
no client used, deployed via helm
Flux check
helm list -A
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
flux2 flux-system 84 2024-08-03 00:46:23.703866088 +0000 UTC deployed flux2-2.13.0 2.3.0
Describe the bug
Flux seems to cache the content of the Discovery endpoint, without any mechanism to invalidate. When CRDs are updated in a way in which new paths need to be used, the controller doesn't have a way of recovering without being recycled
Steps to reproduce
Install CRD
Restart Flux pod
Update CRD in a way in which the
.spec.names.plural
is updatedUse a Kustomization object to create a CR of the GVK defined in the CRD
Expected behavior
Expect Flux, after initial failure to create the object
to invalidate the cache and pull the API resources available on the server without having to delete the pod
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
no client used, deployed via helm
Flux check
Git provider
No response
Container Registry provider
No response
Additional context
Change in plural is sometimes triggered by code generators using different libraries:
https://github.com/gobuffalo/flect/blob/6ae77794e62b2755d42b9dbdf27ec7f69ac5a864/pluralize.go#L67-L70
vs:
https://github.com/kubernetes/gengo/blob/f967bbeff4b4bb4d9d4c7e33a03c522632bdf4f8/namer/plural_namer.go#L105
but, by the time this is propagated, the Flux pod seems to have already cached the CRDs
Code of Conduct
The text was updated successfully, but these errors were encountered: