Documentation ¶
Overview ¶
Copyright Contributors to the Open Cluster Management project
Index ¶
- type AgentOptions
- func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)
- func (a *AgentOptions) RunAddOns(ctx context.Context) error
- func (o *AgentOptions) RunAgent(ctx context.Context) 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
- func (o *AgentOptions) WithWorkloadSourceDriverConfig(hubKubeConfigFile string) *AgentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentOptions ¶
type AgentOptions struct { RegistrationAgentOpts *registrationspoke.SpokeAgentOptions WorkAgentOpts *workspoke.WorkloadAgentOptions CommonOpts *commonoptions.AgentOptions KubeConfig string WorkAgentID string SpokeKubeInformerFactory informers.SharedInformerFactory SpokeClusterInformerFactory clusterv1informers.SharedInformerFactory SpokeRestMapper meta.RESTMapper // contains filtered or unexported fields }
func NewAgentOptions ¶
func NewAgentOptions() *AgentOptions
func (*AgentOptions) AddFlags ¶
func (o *AgentOptions) AddFlags(fs *pflag.FlagSet)
func (*AgentOptions) RunAddOns ¶ added in v0.5.0
func (a *AgentOptions) RunAddOns(ctx context.Context) error
RunAddOns runs the addons in the agent
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
func (*AgentOptions) WithWorkloadSourceDriverConfig ¶ added in v0.4.0
func (o *AgentOptions) WithWorkloadSourceDriverConfig(hubKubeConfigFile string) *AgentOptions
Click to show internal directories.
Click to hide internal directories.