mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 17:49:51 +00:00
fix: defaulting type to SYSTEM for group APIs
Signed-off-by: sharan <sharanrdude@gmail.com>
This commit is contained in:
@@ -125,7 +125,7 @@ message GroupSpec {
|
||||
string type = 3
|
||||
[ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
title : "Type"
|
||||
description : "Type of group"
|
||||
description : "Type of group, defaults to `SYSYTEM`"
|
||||
} ];
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ func updateGroupStatus(req *userpbv3.Group, resp *userpbv3.Group, err error) *us
|
||||
}
|
||||
return req
|
||||
}
|
||||
if req.Spec.Type == "" {
|
||||
req.Spec.Type = "SYSTEM"
|
||||
}
|
||||
resp.Status = &v3.Status{ConditionStatus: v3.ConditionStatus_StatusOK}
|
||||
return resp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user