controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(clientset *kubernetes.Clientset, config *EnvironmentsConfig) (cache.Controller, error)

Types

type EnvironmentsConfig

type EnvironmentsConfig struct {
	Namespace        string
	LimitRangeMemory LimitRangeConfig
	ResourceQuota    ResourceQuotaConfig
}

type FormattedQuantity

type FormattedQuantity int64

func (*FormattedQuantity) AsQuantity

func (fq *FormattedQuantity) AsQuantity() *resource.Quantity

func (*FormattedQuantity) Unmarshal

func (fq *FormattedQuantity) Unmarshal(value string) error

type LimitRangeConfig

type LimitRangeConfig struct {
	DefaultRequest FormattedQuantity
	Default        FormattedQuantity
	Max            FormattedQuantity
}

type ResourceQuotaConfig

type ResourceQuotaConfig struct {
	LimitsMemory   FormattedQuantity
	RequestsMemory FormattedQuantity
}

Jump to

Keyboard shortcuts

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