-
Bug
-
Resolution: Done
-
Normal
-
netobserv-1.6-candidate
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
NetObserv - Sprint 253
-
None
-
None
-
None
With [this PR|https://github.com/netobserv/network-observability-operator/pull/613,] which adds a little bit of content into the CRD, we reach the limit size of the CRD when it is deployed with `kubectl apply`. Here's the error that we get, when running `make deploy`:
The CustomResourceDefinition "flowcollectors.flows.netobserv.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes make: *** [Makefile:367: deploy] Error 1
(It's currently worked-around in the PR by replacing `apply` by `create`, but if you change the Makefile back to using `apply`, you'll be able to reproduce)
The reason is that `apply` works by inserting an annotation (kubectl.kubernetes.io/last-applied-configuration) that contains the whole applied content as a json blob, in order to check for differences, thus allowing to check for changes when the same resource is applied again.
Perhaps we should try to shrink the CRD size? Or perhaps we should move away from `apply` for the CRD installation?
If we decide to shrink the CRD size, perhaps we could try removing all description fields from the v1beta1 version - keeping only those from v1beta2