Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Index ¶
- type AgentOptions
- func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)
- func (o *AgentOptions) RunAgent(ctx context.Context) error
- func (o *AgentOptions) WaitForValidHubKubeConfig(ctx context.Context, kubeconfigPath string) error
- func (o *AgentOptions) WithBootstrapKubeconfig(bootstrapKubeconfig string) *AgentOptions
- func (o *AgentOptions) WithClusterName(clusterName string) *AgentOptions
- func (o *AgentOptions) WithHubKubeconfigDir(hubKubeconfigDir string) *AgentOptions
- func (o *AgentOptions) WithHubKubeconfigSecreName(hubKubeconfigSecreName string) *AgentOptions
- func (o *AgentOptions) WithKubeconfig(kubeConfig string) *AgentOptions
- func (o *AgentOptions) WithSpokeKubeconfig(spokeKubeConfig string) *AgentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentOptions ¶
type AgentOptions struct { RegistrationAgent *spoke.SpokeAgentOptions StatusSyncInterval time.Duration AppliedManifestWorkEvictionGracePeriod time.Duration Burst int QPS float32 KubeConfig string WorkAgentID string // contains filtered or unexported fields }
func NewAgentOptions ¶
func NewAgentOptions() *AgentOptions
func (*AgentOptions) AddFlags ¶
func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)
func (*AgentOptions) WaitForValidHubKubeConfig ¶
func (o *AgentOptions) WaitForValidHubKubeConfig(ctx context.Context, kubeconfigPath string) error
func (*AgentOptions) WithBootstrapKubeconfig ¶
func (o *AgentOptions) WithBootstrapKubeconfig(bootstrapKubeconfig string) *AgentOptions
func (*AgentOptions) WithClusterName ¶
func (o *AgentOptions) WithClusterName(clusterName string) *AgentOptions
func (*AgentOptions) WithHubKubeconfigDir ¶
func (o *AgentOptions) WithHubKubeconfigDir(hubKubeconfigDir string) *AgentOptions
func (*AgentOptions) WithHubKubeconfigSecreName ¶
func (o *AgentOptions) WithHubKubeconfigSecreName(hubKubeconfigSecreName string) *AgentOptions
func (*AgentOptions) WithKubeconfig ¶
func (o *AgentOptions) WithKubeconfig(kubeConfig string) *AgentOptions
func (*AgentOptions) WithSpokeKubeconfig ¶
func (o *AgentOptions) WithSpokeKubeconfig(spokeKubeConfig string) *AgentOptions
Click to show internal directories.
Click to hide internal directories.