Documentation
¶
Index ¶
- type AdmissionConfig
- type ApplicationConfig
- type CUEConfig
- type ClientConfig
- type ControllerConfig
- type FeatureConfig
- type KLogConfig
- type KubernetesConfig
- type MultiClusterConfig
- type OAMConfig
- type ObservabilityConfig
- type PerformanceConfig
- type ProfilingConfig
- type ReconcileConfig
- type ResourceConfig
- type ServerConfig
- type ShardingConfig
- type WebhookConfig
- type WorkflowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionConfig ¶
type AdmissionConfig struct {
}
AdmissionConfig contains admission control configuration.
func NewAdmissionConfig ¶
func NewAdmissionConfig() *AdmissionConfig
NewAdmissionConfig creates a new AdmissionConfig with defaults.
func (*AdmissionConfig) AddFlags ¶
func (c *AdmissionConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers admission configuration flags.
type ApplicationConfig ¶
ApplicationConfig contains application-specific configuration.
func NewApplicationConfig ¶
func NewApplicationConfig() *ApplicationConfig
NewApplicationConfig creates a new ApplicationConfig with defaults.
func (*ApplicationConfig) AddFlags ¶
func (c *ApplicationConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers application configuration flags.
func (*ApplicationConfig) SyncToApplicationGlobals ¶
func (c *ApplicationConfig) SyncToApplicationGlobals()
SyncToApplicationGlobals syncs the parsed configuration values to application package global variables. This should be called after flag parsing to ensure the application controller uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the commonconfig package. Ideally, configuration should be injected rather than using globals.
The flow is: CLI flags -> ApplicationConfig struct fields -> commonconfig globals (via this method)
type CUEConfig ¶
type CUEConfig struct {
EnableExternalPackage bool
EnableExternalPackageWatch bool
EnableCUEVersionCompatibility bool
CUECompatibilityCacheSize int
CUEUpgradeListConcatEnabled bool
CUEUpgradeErrorFieldEnabled bool
CUEUpgradeBoolDefaultGuard bool
CUEUpgradeGenericDefaultGuard bool
CUEUpgradeKeepValidators bool
CUEUpgradeEvalv3SelfRefGuard bool
}
CUEConfig contains CUE language configuration.
func NewCUEConfig ¶
func NewCUEConfig() *CUEConfig
NewCUEConfig creates a new CUEConfig with defaults.
func (*CUEConfig) SyncToCUEGlobals ¶
SyncToCUEGlobals syncs the parsed configuration values to CUE package global variables. This should be called after flag parsing to ensure the CUE compiler uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the cuex package. Ideally, the CUE compiler configuration should be injected rather than relying on globals.
The flow is: CLI flags -> CUEConfig struct fields -> cuex/upgrade globals (via this method) ctx should be the controller's root context so cache eviction goroutines are tied to its lifetime.
type ClientConfig ¶
type ClientConfig struct {
}
ClientConfig contains controller client configuration. This wraps the external package's client configuration flags.
func NewClientConfig ¶
func NewClientConfig() *ClientConfig
NewClientConfig creates a new ClientConfig with defaults.
func (*ClientConfig) AddFlags ¶
func (c *ClientConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers client configuration flags. Delegates to the external package's flag registration.
type ControllerConfig ¶
type ControllerConfig struct {
// Embed the existing Args struct to reuse its fields
oamcontroller.Args
}
ControllerConfig wraps the oamcontroller.Args configuration. While this appears to duplicate the Args struct, it serves as the new home for controller flag registration after the AddFlags method was moved here from the oamcontroller package during refactoring.
func NewControllerConfig ¶
func NewControllerConfig() *ControllerConfig
NewControllerConfig creates a new ControllerConfig with defaults.
func (*ControllerConfig) AddFlags ¶
func (c *ControllerConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers controller configuration flags. This method was moved here from oamcontroller.Args during refactoring to centralize configuration management.
type FeatureConfig ¶
type FeatureConfig struct {
}
FeatureConfig contains feature gate configuration. This wraps the Kubernetes feature gate system.
func NewFeatureConfig ¶
func NewFeatureConfig() *FeatureConfig
NewFeatureConfig creates a new FeatureConfig with defaults.
func (*FeatureConfig) AddFlags ¶
func (c *FeatureConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers feature gate configuration flags. Delegates to the Kubernetes feature gate system.
type KLogConfig ¶
type KLogConfig struct {
// contains filtered or unexported fields
}
KLogConfig contains klog configuration. This wraps the Kubernetes logging configuration.
func NewKLogConfig ¶
func NewKLogConfig(observability *ObservabilityConfig) *KLogConfig
NewKLogConfig creates a new KLogConfig.
func (*KLogConfig) AddFlags ¶
func (c *KLogConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers klog configuration flags.
type KubernetesConfig ¶
KubernetesConfig contains Kubernetes API client configuration.
func NewKubernetesConfig ¶
func NewKubernetesConfig() *KubernetesConfig
NewKubernetesConfig creates a new KubernetesConfig with defaults.
func (*KubernetesConfig) AddFlags ¶
func (c *KubernetesConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers Kubernetes configuration flags.
type MultiClusterConfig ¶
type MultiClusterConfig struct {
EnableClusterGateway bool
EnableClusterMetrics bool
ClusterMetricsInterval time.Duration
}
MultiClusterConfig contains multi-cluster configuration.
func NewMultiClusterConfig ¶
func NewMultiClusterConfig() *MultiClusterConfig
NewMultiClusterConfig creates a new MultiClusterConfig with defaults.
func (*MultiClusterConfig) AddFlags ¶
func (c *MultiClusterConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers multi-cluster configuration flags.
type OAMConfig ¶
type OAMConfig struct {
SystemDefinitionNamespace string
}
OAMConfig contains OAM-specific configuration.
func NewOAMConfig ¶
func NewOAMConfig() *OAMConfig
NewOAMConfig creates a new OAMConfig with defaults.
func (*OAMConfig) SyncToOAMGlobals ¶
func (c *OAMConfig) SyncToOAMGlobals()
SyncToOAMGlobals syncs the parsed configuration values to OAM package global variables. This should be called after flag parsing to ensure the OAM runtime uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the oam package. Ideally, configuration should be injected rather than using globals.
The flow is: CLI flags -> OAMConfig struct fields -> oam globals (via this method)
type ObservabilityConfig ¶
type ObservabilityConfig struct {
MetricsAddr string
LogFilePath string
LogFileMaxSize uint64
LogDebug bool
DevLogs bool
}
ObservabilityConfig contains metrics and logging configuration.
func NewObservabilityConfig ¶
func NewObservabilityConfig() *ObservabilityConfig
NewObservabilityConfig creates a new ObservabilityConfig with defaults.
func (*ObservabilityConfig) AddFlags ¶
func (c *ObservabilityConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers observability configuration flags.
type PerformanceConfig ¶
type PerformanceConfig struct {
PerfEnabled bool
}
PerformanceConfig contains performance and optimization configuration.
func NewPerformanceConfig ¶
func NewPerformanceConfig() *PerformanceConfig
NewPerformanceConfig creates a new PerformanceConfig with defaults.
func (*PerformanceConfig) AddFlags ¶
func (c *PerformanceConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers performance configuration flags.
func (*PerformanceConfig) SyncToPerformanceGlobals ¶
func (c *PerformanceConfig) SyncToPerformanceGlobals()
SyncToPerformanceGlobals syncs the parsed configuration values to performance package global variables. This should be called after flag parsing to ensure the performance monitoring uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the commonconfig package. Ideally, configuration should be injected rather than using globals.
The flow is: CLI flags -> PerformanceConfig struct fields -> commonconfig globals (via this method)
type ProfilingConfig ¶
type ProfilingConfig struct {
}
ProfilingConfig contains profiling configuration. This wraps the external package's profiling configuration flags.
func NewProfilingConfig ¶
func NewProfilingConfig() *ProfilingConfig
NewProfilingConfig creates a new ProfilingConfig with defaults.
func (*ProfilingConfig) AddFlags ¶
func (c *ProfilingConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers profiling configuration flags. Delegates to the external package's flag registration.
type ReconcileConfig ¶
type ReconcileConfig struct {
}
ReconcileConfig contains controller reconciliation configuration. This wraps the external package's reconciler configuration flags.
func NewReconcileConfig ¶
func NewReconcileConfig() *ReconcileConfig
NewReconcileConfig creates a new ReconcileConfig with defaults.
func (*ReconcileConfig) AddFlags ¶
func (c *ReconcileConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers reconcile configuration flags. Delegates to the external package's flag registration.
type ResourceConfig ¶
type ResourceConfig struct {
MaxDispatchConcurrent int
}
ResourceConfig contains resource management configuration.
func NewResourceConfig ¶
func NewResourceConfig() *ResourceConfig
NewResourceConfig creates a new ResourceConfig with defaults.
func (*ResourceConfig) AddFlags ¶
func (c *ResourceConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers resource configuration flags.
func (*ResourceConfig) SyncToResourceGlobals ¶
func (c *ResourceConfig) SyncToResourceGlobals()
SyncToResourceGlobals syncs the parsed configuration values to resource package global variables. This should be called after flag parsing to ensure the resource keeper uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the resourcekeeper package. The long-term goal should be to refactor to use dependency injection rather than globals.
The flow is: CLI flags -> ResourceConfig struct fields -> resourcekeeper globals (via this method)
type ServerConfig ¶
type ServerConfig struct {
HealthAddr string
StorageDriver string
EnableLeaderElection bool
LeaderElectionNamespace string
LeaseDuration time.Duration
RenewDeadline time.Duration
RetryPeriod time.Duration
}
ServerConfig contains server-level configuration.
func NewServerConfig ¶
func NewServerConfig() *ServerConfig
NewServerConfig creates a new ServerConfig with defaults.
func (*ServerConfig) AddFlags ¶
func (c *ServerConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers server configuration flags.
type ShardingConfig ¶
type ShardingConfig struct {
}
ShardingConfig contains controller sharding configuration. This wraps the external package's sharding configuration flags.
func NewShardingConfig ¶
func NewShardingConfig() *ShardingConfig
NewShardingConfig creates a new ShardingConfig with defaults.
func (*ShardingConfig) AddFlags ¶
func (c *ShardingConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers sharding configuration flags. Delegates to the external package's flag registration.
type WebhookConfig ¶
WebhookConfig contains webhook configuration.
func NewWebhookConfig ¶
func NewWebhookConfig() *WebhookConfig
NewWebhookConfig creates a new WebhookConfig with defaults.
func (*WebhookConfig) AddFlags ¶
func (c *WebhookConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers webhook configuration flags.
type WorkflowConfig ¶
type WorkflowConfig struct {
MaxWaitBackoffTime int
MaxFailedBackoffTime int
MaxStepErrorRetryTimes int
}
WorkflowConfig contains workflow engine configuration.
func NewWorkflowConfig ¶
func NewWorkflowConfig() *WorkflowConfig
NewWorkflowConfig creates a new WorkflowConfig with defaults.
func (*WorkflowConfig) AddFlags ¶
func (c *WorkflowConfig) AddFlags(fs *pflag.FlagSet)
AddFlags registers workflow configuration flags.
func (*WorkflowConfig) SyncToWorkflowGlobals ¶
func (c *WorkflowConfig) SyncToWorkflowGlobals()
SyncToWorkflowGlobals syncs the parsed configuration values to workflow package global variables. This should be called after flag parsing to ensure the workflow engine uses the configured values.
NOTE: This method exists for backward compatibility with legacy code that depends on global variables in the wfTypes package. The long-term goal should be to refactor the workflow package to accept configuration via dependency injection rather than globals.
The flow is: CLI flags -> WorkflowConfig struct fields -> wfTypes globals (via this method)