scale

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 30 Imported by: 0

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

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL