feat: clarify existing conflict error

This commit is contained in:
Mariell Hoversholm
2025-03-26 09:07:33 +01:00
parent 094c7d860e
commit ef6e690830
+1
View File
@@ -480,6 +480,7 @@ func (s *server) Create(ctx context.Context, req *CreateRequest) (*CreateRespons
if found != nil && len(found.Value) > 0 {
rsp.Error = &ErrorResult{
Code: http.StatusConflict,
Reason: string(metav1.StatusReasonAlreadyExists),
Message: "key already exists", // TODO?? soft delete replace?
}
return rsp, nil