Documentation ¶
Overview ¶
Package client is the package that generate K8S kubeConfig and clientSet; and any new CRD and its corresponding clientSet should be added here. besides, this package is the only package that update/patch actions should happen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericClientSet ¶
type GenericClientSet struct { MetaClient metadata.Interface KubeClient kubernetes.Interface InternalClient clientset.Interface DynamicClient dynamic.Interface DiscoveryClient discovery.DiscoveryInterface CustomClient customclient.CustomMetricsClient ExternalClient externalclient.ExternalMetricsClient // contains filtered or unexported fields }
GenericClientSet defines a generic client contains clients that are needed
func NewGenericClientWithName ¶
func NewGenericClientWithName(name string, cfg *rest.Config) *GenericClientSet
NewGenericClientWithName returns clientSet with given name as user-agent.
func (*GenericClientSet) BuildMetricClient ¶
func (g *GenericClientSet) BuildMetricClient(mapper *dynamicmapper.RegeneratingDiscoveryRESTMapper)
Directories ¶
Path | Synopsis |
---|---|
Package control is the package to perform the real update actions for K8S objects through APIServer; all clientSet actions should be arranged here to provide a unified behavior for dry-run and testing.
|
Package control is the package to perform the real update actions for K8S objects through APIServer; all clientSet actions should be arranged here to provide a unified behavior for dry-run and testing. |
Click to show internal directories.
Click to hide internal directories.