func()

in pkg/clientset/versioned/typed/networking/v1beta1/proxyconfig.gen.go [228:254]


func (c *proxyConfigs) ApplyStatus(ctx context.Context, proxyConfig *networkingv1beta1.ProxyConfigApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.ProxyConfig, err error) {
	if proxyConfig == nil {
		return nil, fmt.Errorf("proxyConfig provided to Apply must not be nil")
	}
	patchOpts := opts.ToPatchOptions()
	data, err := json.Marshal(proxyConfig)
	if err != nil {
		return nil, err
	}

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

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