Skip to content

Commit

Permalink
Merge pull request #2195 from zimnx/unify-scheme
Browse files Browse the repository at this point in the history
Unify scheme usage
  • Loading branch information
scylla-operator-bot[bot] authored Nov 25, 2024
2 parents 8a738eb + 09351bc commit b2b22b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
24 changes: 0 additions & 24 deletions pkg/cmd/operator/scheme.go

This file was deleted.

3 changes: 2 additions & 1 deletion pkg/cmd/operator/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/scylladb/scylla-operator/pkg/api/scylla/validation"
"github.com/scylladb/scylla-operator/pkg/genericclioptions"
"github.com/scylladb/scylla-operator/pkg/kubeinterfaces"
"github.com/scylladb/scylla-operator/pkg/scheme"
"github.com/scylladb/scylla-operator/pkg/signals"
"github.com/scylladb/scylla-operator/pkg/version"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -316,7 +317,7 @@ func validate(ar *admissionv1.AdmissionReview, validators map[schema.GroupVersio
Resource: ar.Request.Resource.Resource,
}

deserializer := codecs.UniversalDeserializer()
deserializer := scheme.Codecs.UniversalDeserializer()

var err error
var obj, oldObj runtime.Object
Expand Down

0 comments on commit b2b22b8

Please sign in to comment.