Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkAgentConfig ¶ added in v0.12.0
type WorkAgentConfig struct {
// contains filtered or unexported fields
}
func NewWorkAgentConfig ¶ added in v0.12.0
func NewWorkAgentConfig(commonOpts *commonoptions.AgentOptions, opts *WorkloadAgentOptions) *WorkAgentConfig
NewWorkAgentConfig returns a WorkAgentConfig
func (*WorkAgentConfig) RunWorkloadAgent ¶ added in v0.12.0
func (o *WorkAgentConfig) RunWorkloadAgent(ctx context.Context, controllerContext *controllercmd.ControllerContext) error
RunWorkloadAgent starts the controllers on agent to process work from hub.
type WorkloadAgentOptions ¶
type WorkloadAgentOptions struct { StatusSyncInterval time.Duration AppliedManifestWorkEvictionGracePeriod time.Duration }
WorkloadAgentOptions defines the flags for workload agent
func NewWorkloadAgentOptions ¶
func NewWorkloadAgentOptions() *WorkloadAgentOptions
NewWorkloadAgentOptions returns the flags with default value set
func (*WorkloadAgentOptions) AddFlags ¶
func (o *WorkloadAgentOptions) AddFlags(fs *pflag.FlagSet)
AddFlags register and binds the default flags
Click to show internal directories.
Click to hide internal directories.