kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/util/kubectl_match_version.go

const flagMatchBinaryVersion

type MatchVersionFlags

var _

func (f *MatchVersionFlags) checkMatchingServerVersion() error {}

// ToRESTConfig implements RESTClientGetter.
// Returns a REST client configuration based on a provided path
// to a .kubeconfig file, loading rules, and config flag overrides.
// Expects the AddFlags method to have been called.
func (f *MatchVersionFlags) ToRESTConfig() (*rest.Config, error) {}

func (f *MatchVersionFlags) ToRawKubeConfigLoader() clientcmd.ClientConfig {}

func (f *MatchVersionFlags) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) {}

// ToRESTMapper returns a mapper.
func (f *MatchVersionFlags) ToRESTMapper() (meta.RESTMapper, error) {}

func (f *MatchVersionFlags) AddFlags(flags *pflag.FlagSet) {}

func NewMatchVersionFlags(delegate genericclioptions.RESTClientGetter) *MatchVersionFlags {}

// setKubernetesDefaults sets default values on the provided client config for accessing the
// Kubernetes API or returns an error if any of the defaults are impossible or invalid.
// TODO this isn't what we want.  Each clientset should be setting defaults as it sees fit.
func setKubernetesDefaults(config *rest.Config) error {}