Skip to content

Commit

Permalink
Don't use metav1 internal version but public meta/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jan 23, 2020
1 parent 65e84bd commit a16da02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions store/proxy/proxy_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"golang.org/x/sync/errgroup"
"k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
"k8s.io/apimachinery/pkg/api/errors"
metainternalversion "k8s.io/apimachinery/pkg/apis/meta/internalversion"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -524,7 +523,7 @@ func splitID(id string) (string, string) {

func getDeleteOption(req *http.Request) (*metav1.DeleteOptions, error) {
options := &metav1.DeleteOptions{}
if err := metainternalversion.ParameterCodec.DecodeParameters(req.URL.Query(), metainternalversion.SchemeGroupVersion, options); err != nil {
if err := metav1.ParameterCodec.DecodeParameters(req.URL.Query(), metav1.SchemeGroupVersion, options); err != nil {
return nil, err
}
prop := metav1.DeletePropagationBackground
Expand Down

0 comments on commit a16da02

Please sign in to comment.