kubescape / storage

Apache License 2.0
1 stars 5 forks source link

The allowed maximum operations in a JSON patch is 10000 #116

Open chubchubsancho opened 1 month ago

chubchubsancho commented 1 month ago

:wave: I'm totally new to kubescape and found some error during JSON patch for some of our applicationprofile

{"level":"error","ts":"2024-05-24T08:44:12Z","msg":"tryUpdate func failed","error":"Request entity too large: The allowed maximum operations in a JSON patch is 10000, got 15621","key":"/spdx.softwarecomposition.kubescape.io/applicationprofiles/xxxxx/replicaset-xxxxx-85b8c84dc8"}

storage version: v0.0.84

slashben commented 1 month ago

Hey @chubchubsancho ! We are limiting the size of the profiles to 10k to prevent the overflow of the data pipes on the way (API server and etc.).

We saw in our tests that this was a limit we did not get to. Can you please give more info about your application?

chubchubsancho commented 1 month ago

I can see this error for many differents applications i can give you example for public project