Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Injectables = []Injectable{&Options{}}
)
Functions ¶
Types ¶
type FeatureGates ¶ added in v0.32.0
type FeatureGates struct {
Drift bool
// contains filtered or unexported fields
}
func ParseFeatureGates ¶ added in v0.32.0
func ParseFeatureGates(gateStr string) (FeatureGates, error)
type Injectable ¶ added in v0.32.0
type Injectable interface {
// AddFlags adds the injectable's flags to karpenter's flag set
AddFlags(*FlagSet)
// Parse parses the flag set and handles any required post-processing on
// the flags
Parse(*FlagSet, ...string) error
// ToContext injects the callee into the given context
ToContext(context.Context) context.Context
// MergeSettings extracts settings from the given context and merges them
// with the options in-place. Values that were previously set by CLI flags
// or environment variables take precedent over settings.
// TODO: Remove with karpenter-global-settings
MergeSettings(context.Context)
}
Injectable defines a set of flag based options to be parsed and injected into Karpenter's contexts
type Options ¶
type Options struct {
ServiceName string
DisableWebhook bool
WebhookPort int
MetricsPort int
WebhookMetricsPort int
HealthProbePort int
KubeClientQPS int
KubeClientBurst int
EnableProfiling bool
EnableLeaderElection bool
MemoryLimit int64
LogLevel string
BatchMaxDuration time.Duration
BatchIdleDuration time.Duration
FeatureGates FeatureGates
// contains filtered or unexported fields
}
Options contains all CLI flags / env vars for karpenter-core. It adheres to the options.Injectable interface.
func FromContext ¶ added in v0.32.0
func (*Options) MergeSettings ¶ added in v0.32.0
Click to show internal directories.
Click to hide internal directories.