Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var WireSet = wire.NewSet( ProvideClientConfig, NewGetter, )
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
Composes the set of values necessary for obtaining a REST client config
func NewGetter ¶
func NewGetter(dir *dirs.TiltDevDir, config TiltClientConfig) *Getter
func (*Getter) ToDiscoveryClient ¶
func (f *Getter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
ToDiscoveryClient implements RESTClientGetter. Expects the AddFlags method to have been called. Returns a CachedDiscoveryInterface using a computed RESTConfig.
func (*Getter) ToRESTConfig ¶
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 (*Getter) ToRESTMapper ¶
func (f *Getter) ToRESTMapper() (meta.RESTMapper, error)
func (*Getter) ToRawKubeConfigLoader ¶
func (f *Getter) ToRawKubeConfigLoader() clientcmd.ClientConfig
ToRawKubeConfigLoader binds config flag values to config overrides Returns an interactive clientConfig if the password flag is enabled, or a non-interactive clientConfig otherwise.
type TiltClientConfig ¶ added in v0.19.5
type TiltClientConfig clientcmd.ClientConfig
func ProvideClientConfig ¶ added in v0.19.5
func ProvideClientConfig(apiServerName model.APIServerName, configAccess clientcmd.ConfigAccess) (TiltClientConfig, error)
Uses the kubernetes config-loading library to create a client config for the given server name.