Documentation
¶
Overview ¶
Copyright 2020 Adobe All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe.
Copyright 2020 Adobe All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe.
Index ¶
- Constants
- type DefaultsUpdater
- type ScaleFacade
- type ScaleTarget
- func (st *ScaleTarget) GetRequestedResources(namespace string, selector labels.Selector) (map[string]*corev1.ResourceList, error)
- func (st *ScaleTarget) GetScaleTarget(namespace string, targetRef *v1alpha1.ScaleTargetReference) (*autoscalingv1.Scale, *schema.GroupResource, error)
- func (st *ScaleTarget) GetSelectorForTarget(namespace string, targetRef *v1alpha1.ScaleTargetReference) (labels.Selector, error)
- func (st *ScaleTarget) NewRequestedResource() *corev1.ResourceList
- func (st *ScaleTarget) Scale(namespace string, groupResource *schema.GroupResource, ...) error
Constants ¶
const (
ALL_CONTAINERS string = ""
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultsUpdater ¶
type DefaultsUpdater struct {
// contains filtered or unexported fields
}
type ScaleFacade ¶
type ScaleFacade struct {
// contains filtered or unexported fields
}
func NewScaleFacade ¶
func NewScaleFacade(params *common.KratosParameters) (*ScaleFacade, error)
func (*ScaleFacade) Scale ¶
func (f *ScaleFacade) Scale(item *corev1.ConfigMap)
type ScaleTarget ¶
type ScaleTarget struct {
// contains filtered or unexported fields
}
func NewScaleTarget ¶
func NewScaleTarget(params *common.KratosParameters) (*ScaleTarget, error)
func (*ScaleTarget) GetRequestedResources ¶
func (st *ScaleTarget) GetRequestedResources(namespace string, selector labels.Selector) (map[string]*corev1.ResourceList, error)
func (*ScaleTarget) GetScaleTarget ¶
func (st *ScaleTarget) GetScaleTarget(namespace string, targetRef *v1alpha1.ScaleTargetReference) (*autoscalingv1.Scale, *schema.GroupResource, error)
func (*ScaleTarget) GetSelectorForTarget ¶
func (st *ScaleTarget) GetSelectorForTarget(namespace string, targetRef *v1alpha1.ScaleTargetReference) (labels.Selector, error)
func (*ScaleTarget) NewRequestedResource ¶
func (st *ScaleTarget) NewRequestedResource() *corev1.ResourceList
func (*ScaleTarget) Scale ¶
func (st *ScaleTarget) Scale(namespace string, groupResource *schema.GroupResource, scale *autoscalingv1.Scale) error