Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶ added in v1.25.0
type CompletedConfig struct {
genericapiserver.CompletedConfig
}
func (CompletedConfig) New ¶ added in v1.25.0
func (c CompletedConfig) New(name string, customMetricsProvider provider.CustomMetricsProvider, externalMetricsProvider provider.ExternalMetricsProvider) (*CustomMetricsAdapterServer, error)
New returns a new instance of CustomMetricsAdapterServer from the given config. name is used to differentiate for logging. Each of the arguments: customMetricsProvider, externalMetricsProvider can be set either to a provider implementation, or to nil to disable one of the APIs.
type Config ¶
type Config struct {
GenericConfig *genericapiserver.Config
}
func (*Config) Complete ¶
func (c *Config) Complete(informers informers.SharedInformerFactory) CompletedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type CustomMetricsAdapterServer ¶
type CustomMetricsAdapterServer struct { GenericAPIServer *genericapiserver.GenericAPIServer // contains filtered or unexported fields }
CustomMetricsAdapterServer contains state for a Kubernetes cluster master/api server.
func (*CustomMetricsAdapterServer) InstallCustomMetricsAPI ¶
func (s *CustomMetricsAdapterServer) InstallCustomMetricsAPI() error
func (*CustomMetricsAdapterServer) InstallExternalMetricsAPI ¶
func (s *CustomMetricsAdapterServer) InstallExternalMetricsAPI() error
InstallExternalMetricsAPI registers the api server in Kube Aggregator
Click to show internal directories.
Click to hide internal directories.