func()

in pkg/clientset/versioned/typed/networking/v1alpha3/serviceentry.gen.go [228:254]


func (c *serviceEntries) ApplyStatus(ctx context.Context, serviceEntry *networkingv1alpha3.ServiceEntryApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha3.ServiceEntry, err error) {
	if serviceEntry == nil {
		return nil, fmt.Errorf("serviceEntry provided to Apply must not be nil")
	}
	patchOpts := opts.ToPatchOptions()
	data, err := json.Marshal(serviceEntry)
	if err != nil {
		return nil, err
	}

	name := serviceEntry.Name
	if name == nil {
		return nil, fmt.Errorf("serviceEntry.Name must be provided to Apply")
	}

	result = &v1alpha3.ServiceEntry{}
	err = c.client.Patch(types.ApplyPatchType).
		Namespace(c.ns).
		Resource("serviceentries").
		Name(*name).
		SubResource("status").
		VersionedParams(&patchOpts, scheme.ParameterCodec).
		Body(data).
		Do(ctx).
		Into(result)
	return
}