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