in pkg/clientset/versioned/typed/security/v1beta1/peerauthentication.gen.go [228:254]
func (c *peerAuthentications) ApplyStatus(ctx context.Context, peerAuthentication *securityv1beta1.PeerAuthenticationApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.PeerAuthentication, err error) {
if peerAuthentication == nil {
return nil, fmt.Errorf("peerAuthentication provided to Apply must not be nil")
}
patchOpts := opts.ToPatchOptions()
data, err := json.Marshal(peerAuthentication)
if err != nil {
return nil, err
}
name := peerAuthentication.Name
if name == nil {
return nil, fmt.Errorf("peerAuthentication.Name must be provided to Apply")
}
result = &v1beta1.PeerAuthentication{}
err = c.client.Patch(types.ApplyPatchType).
Namespace(c.ns).
Resource("peerauthentications").
Name(*name).
SubResource("status").
VersionedParams(&patchOpts, scheme.ParameterCodec).
Body(data).
Do(ctx).
Into(result)
return
}