Skip to content

Commit 59e3343

Browse files
committed
removing patch options
1 parent d382eb7 commit 59e3343

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

common-lib/utils/k8s/K8sUtil.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ type K8sService interface {
150150
CreateNs(namespace string, client *v12.CoreV1Client) (ns *v1.Namespace, err error)
151151
GetRestClientForCRD(config *ClusterConfig, groupVersion *schema.GroupVersion) (*rest.RESTClient, error)
152152
GetGVRForCRD(config *rest.Config, CRDName string) (schema.GroupVersionResource, error)
153-
PatchResourceByRestClient(restClient *rest.RESTClient, resource, name, namespace string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) rest.Result
153+
PatchResourceByRestClient(restClient *rest.RESTClient, resource, name, namespace string, pt types.PatchType, data []byte, subresources ...string) rest.Result
154154
}
155155

156156
func NewK8sUtil(logger *zap.SugaredLogger, runTimeConfig *RuntimeConfig) (*K8sServiceImpl, error) {
@@ -1958,13 +1958,12 @@ func (impl *K8sServiceImpl) GetRestClientForCRD(config *ClusterConfig, groupVers
19581958
return restClient, nil
19591959
}
19601960

1961-
func (impl *K8sServiceImpl) PatchResourceByRestClient(restClient *rest.RESTClient, resource, name, namespace string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) rest.Result {
1961+
func (impl *K8sServiceImpl) PatchResourceByRestClient(restClient *rest.RESTClient, resource, name, namespace string, pt types.PatchType, data []byte, subresources ...string) rest.Result {
19621962
result := restClient.Patch(pt).
19631963
Namespace(namespace).
19641964
Resource(resource).
19651965
Name(name).
19661966
SubResource(subresources...).
1967-
VersionedParams(&opts, scheme.ParameterCodec).
19681967
Body(data).
19691968
Do(context.Background())
19701969
return result

0 commit comments

Comments
 (0)