wrap restclientgetter with match version option

This commit is contained in:
David Eads
2018-05-10 08:13:45 -04:00
parent 1f5357034b
commit 080d6a4b0d
6 changed files with 144 additions and 79 deletions

View File

@@ -50,14 +50,6 @@ import (
"k8s.io/kubernetes/pkg/printers"
)
const (
FlagMatchBinaryVersion = "match-server-version"
)
var (
FlagHTTPCacheDir = "cache-dir"
)
// Factory provides abstractions that allow the Kubectl command to be extended across multiple types
// of resources and different API sets.
// The rings are here for a reason. In order for composers to be able to provide alternative factory implementations
@@ -132,9 +124,6 @@ type ClientAccessFactory interface {
// using the factory.
Command(cmd *cobra.Command, showSecrets bool) string
// BindFlags adds any flags that are common to all kubectl sub commands.
BindFlags(flags *pflag.FlagSet)
// SuggestedPodTemplateResources returns a list of resource types that declare a pod template
SuggestedPodTemplateResources() []schema.GroupResource