Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package Package gc holds the typed objects that define the schemas for assorted ConfigMap objects on which the Route controller depends.
Index ¶
Constants ¶
View Source
const (
ConfigName = "config-gc"
Disabled = -1
)
Variables ¶
This section is empty.
Functions ¶
func NewConfigFromConfigMapFunc ¶ added in v0.7.0
func NewConfigFromConfigMapFunc(ctx context.Context) func(configMap *corev1.ConfigMap) (*Config, error)
Types ¶
type Config ¶
type Config struct {
// Delay duration after a revision create before considering it for GC
StaleRevisionCreateDelay time.Duration
// Timeout since a revision lastPinned before it should be GC'd
// This must be longer than the controller resync period
StaleRevisionTimeout time.Duration
// Minimum number of generations of revisions to keep before considering for GC.
StaleRevisionMinimumGenerations int64
// Minimum staleness duration before updating lastPinned
StaleRevisionLastpinnedDebounce time.Duration
// Duration from creation when a Revision should be considered active
// and exempt from GC. Note that GCMaxStaleRevision may override this if set.
// Set Disabled (-1) to disable/ignore duration and always consider active.
RetainSinceCreateTime time.Duration
// Duration from last active when a Revision should be considered active
// and exempt from GC.Note that GCMaxStaleRevision may override this if set.
// Set Disabled (-1) to disable/ignore duration and always consider active.
RetainSinceLastActiveTime time.Duration
// Minimum number of non-active revisions to keep before considering for GC.
MinNonActiveRevisions int64
// Maximum number of non-active revisions to keep before considering for GC.
// regardless of creation or staleness time-bounds.
// Set Disabled (-1) to disable/ignore max.
MaxNonActiveRevisions int64
}
func (*Config) DeepCopy ¶
func (in *Config) DeepCopy() *Config
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
func (in *Config) DeepCopyInto(out *Config)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.