Skip to content

Commit

Permalink
boring: legacy scheme moved
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Dec 8, 2017
1 parent cf887be commit 89dcb16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package internalversion
import (
v1beta1 "k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/runtime"
kapi "k8s.io/kubernetes/pkg/apis/core"
"k8s.io/kubernetes/pkg/api/legacyscheme"
)

type DeploymentConfigExpansion interface {
UpdateScale(deploymentConfigName string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error)
}

var scaleCodec = kapi.Codecs.LegacyCodec(v1beta1.SchemeGroupVersion)
var scaleCodec = legacyscheme.Codecs.LegacyCodec(v1beta1.SchemeGroupVersion)

// UpdateScale takes the top resource name and the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
func (c *deploymentConfigs) UpdateScale(deploymentConfigName string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error) {
Expand Down

0 comments on commit 89dcb16

Please sign in to comment.