Documentation
¶
Index ¶
- Constants
- Variables
- func NewRootCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- type App
- type HPAView
- func (v HPAView) DesiredReplicas() int32
- func (v HPAView) DownscaleCooldown() *time.Duration
- func (v HPAView) LastChange() time.Time
- func (v HPAView) Logger() *log.Entry
- func (v HPAView) LowerReplicaLimit() *int32
- func (v HPAView) MinReplicas() int32
- func (v HPAView) Name() string
- func (v HPAView) Namespace() string
- type Handler
- type KubeParams
Constants ¶
View Source
const ( AnnotationLastChange = "rebuy.com/kubernetes-hpaa.last-change" AnnotationDownscaleCooldown = "rebuy.com/kubernetes-hpaa.downscale-cooldown" AnnotationLowerReplicaLimit = "rebuy.com/kubernetes-hpaa.lower-replica-limit" )
Variables ¶
View Source
var ( BuildVersion = "unknown" BuildDate = "unknown" BuildHash = "unknown" BuildEnvironment = "unknown" )
Functions ¶
func NewRootCommand ¶
func NewVersionCommand ¶
Types ¶
type App ¶
func (*App) Kubernetes ¶
func (app *App) Kubernetes() kubernetes.Interface
type HPAView ¶
type HPAView autoscaling.HorizontalPodAutoscaler
HPAView provides a specialized view of an HPA, so the actual algorithm more understandable.
func (HPAView) DesiredReplicas ¶ added in v0.2.2
func (HPAView) DownscaleCooldown ¶
func (HPAView) LastChange ¶
func (HPAView) LowerReplicaLimit ¶
func (HPAView) MinReplicas ¶
type Handler ¶
type Handler struct { Client kubernetes.Interface // contains filtered or unexported fields }
type KubeParams ¶
func (*KubeParams) Bind ¶
func (p *KubeParams) Bind(cmd *cobra.Command)
func (*KubeParams) Create ¶
func (p *KubeParams) Create() (kubernetes.Interface, error)
Click to show internal directories.
Click to hide internal directories.