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
}
Source Files
¶
- config.go
- controller.go
- environment_watcher.go
Click to show internal directories.
Click to hide internal directories.