in pkg/clientset/versioned/typed/networking/v1alpha3/destinationrule.gen.go [228:254]
func (c *destinationRules) ApplyStatus(ctx context.Context, destinationRule *networkingv1alpha3.DestinationRuleApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.DestinationRule, err error) {
if destinationRule == nil {
return nil, fmt.Errorf("destinationRule provided to Apply must not be nil")
}
patchOpts := opts.ToPatchOptions()
data, err := json.Marshal(destinationRule)
if err != nil {
return nil, err
}
name := destinationRule.Name
if name == nil {
return nil, fmt.Errorf("destinationRule.Name must be provided to Apply")
}
result = &v1alpha3.DestinationRule{}
err = c.client.Patch(types.ApplyPatchType).
Namespace(c.ns).
Resource("destinationrules").
Name(*name).
SubResource("status").
VersionedParams(&patchOpts, scheme.ParameterCodec).
Body(data).
Do(ctx).
Into(result)
return
}