Documentation ¶
Index ¶
- type Base
- func (c *Base) DeleteMetricsServices(ctx context.Context, pa *pav1alpha1.PodAutoscaler) error
- func (c *Base) ReconcileMetric(ctx context.Context, pa *pav1alpha1.PodAutoscaler, metricSN string) error
- func (c *Base) ReconcileSKS(ctx context.Context, pa *pav1alpha1.PodAutoscaler, ...) (*nv1alpha1.ServerlessService, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { KubeClient kubernetes.Interface Client clientset.Interface ServiceLister corev1listers.ServiceLister SKSLister nlisters.ServerlessServiceLister MetricLister listers.MetricLister PSInformerFactory duck.InformerFactory }
Base implements the core controller logic for autoscaling, given a Reconciler.
func (*Base) DeleteMetricsServices ¶ added in v0.11.0
func (c *Base) DeleteMetricsServices(ctx context.Context, pa *pav1alpha1.PodAutoscaler) error
DeleteMetricsServices removes all metrics services for the current PA. TODO(5900): Remove after 0.12 is cut.
func (*Base) ReconcileMetric ¶
func (c *Base) ReconcileMetric(ctx context.Context, pa *pav1alpha1.PodAutoscaler, metricSN string) error
ReconcileMetric reconciles a metric instance out of the given PodAutoscaler to control metric collection.
func (*Base) ReconcileSKS ¶
func (c *Base) ReconcileSKS(ctx context.Context, pa *pav1alpha1.PodAutoscaler, mode nv1alpha1.ServerlessServiceOperationMode) (*nv1alpha1.ServerlessService, error)
ReconcileSKS reconciles a ServerlessService based on the given PodAutoscaler.
Directories ¶
Path | Synopsis |
---|---|
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Autoscaling controller depends.
|
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Autoscaling controller depends. |
Package kpa implements a kubernetes controller which tracks revisions and notifies a callback interface.
|
Package kpa implements a kubernetes controller which tracks revisions and notifies a callback interface. |
Package resources contains methods for manipulating K8s resources shared between different PA implementations.
|
Package resources contains methods for manipulating K8s resources shared between different PA implementations. |
names
Package names contains methods for manipulating K8s resources' names shared between different PA implementations.
|
Package names contains methods for manipulating K8s resources' names shared between different PA implementations. |
Click to show internal directories.
Click to hide internal directories.