wip011
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
parent
cbcb527ce3
commit
f126ef4eaf
@ -199,11 +199,11 @@ func (r *REST) validateRequest(
|
|||||||
return nil, apierrors.NewBadRequest(fmt.Sprintf("not an OIDCClientSecretRequest: %#v", obj))
|
return nil, apierrors.NewBadRequest(fmt.Sprintf("not an OIDCClientSecretRequest: %#v", obj))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO validate these fields
|
// TODO validate these fields, copy BeforeCreate logic
|
||||||
_ = clientSecretRequest.Name
|
_ = clientSecretRequest.Name // -> non-empty, has prefix
|
||||||
_ = clientSecretRequest.GenerateName
|
_ = clientSecretRequest.GenerateName // --> empty
|
||||||
_ = clientSecretRequest.Namespace
|
_ = clientSecretRequest.Namespace // matches
|
||||||
_ = clientSecretRequest.ResourceVersion
|
_ = clientSecretRequest.ResourceVersion // empty?
|
||||||
|
|
||||||
// just a sanity check, not sure how to honor a dry run on a virtual API
|
// just a sanity check, not sure how to honor a dry run on a virtual API
|
||||||
if options != nil {
|
if options != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user