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
We dont need to save the dynamic client and the k8s client we can shift the logic of building the clients to the context file and than we will call it only in needed routes. the only things we will need in our context is logger and config which will use to build the specified clients here:
We save a lot of redundant objects in our context which make it heavy, for example
platform-backend/src/middleware/auth_middleware.go
Lines 95 to 100 in 63233cb
We dont need to save the dynamic client and the k8s client we can shift the logic of building the clients to the context file and than we will call it only in needed routes. the only things we will need in our context is logger and config which will use to build the specified clients here:
platform-backend/src/middleware/context.go
Lines 13 to 28 in 63233cb
The text was updated successfully, but these errors were encountered: