Merge pull request #72678 from rmohr/cr-autoscale

Add Custom Resource support to "kubectl autoscale"
This commit is contained in:
Kubernetes Prow Robot
2019-02-26 11:05:09 -08:00
committed by GitHub
6 changed files with 13 additions and 130 deletions

View File

@@ -79,12 +79,6 @@ type PortsForObjectFunc func(object runtime.Object) ([]string, error)
// PortsForObjectFn gives a way to easily override the function for unit testing if needed
var PortsForObjectFn PortsForObjectFunc = portsForObject
// CanBeAutoscaledFunc checks whether the kind of resources could be autoscaled
type CanBeAutoscaledFunc func(kind schema.GroupKind) error
// CanBeAutoscaledFn gives a way to easily override the function for unit testing if needed
var CanBeAutoscaledFn CanBeAutoscaledFunc = canBeAutoscaled
// CanBeExposedFunc is a function type that can tell you whether a given GroupKind is capable of being exposed
type CanBeExposedFunc func(kind schema.GroupKind) error