statusspoke

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentCommand

func NewAgentCommand(addonName string, logger logr.Logger) *cobra.Command

NewAgentCommand creates a new Cobra command to start the agent for a specific component.

Types

type AgentOptions

type AgentOptions struct {
	Log               logr.Logger
	HubKubeconfigFile string
	SpokeClusterName  string
	AddonName         string
	AddonNamespace    string
}

AgentOptions defines the flags for workload agent.

func NewAgentOptions

func NewAgentOptions(addonName string, logger logr.Logger) *AgentOptions

NewAgentOptions returns new instance of AgentOptions.

func (*AgentOptions) AddFlags

func (o *AgentOptions) AddFlags(cmd *cobra.Command)

AddFlags adds the hub kubeconfig location and spoke cluster name as flags.

type CappSyncReconciler

type CappSyncReconciler struct {
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*CappSyncReconciler) Reconcile

func (r *CappSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile listens to Capp events on the spoke clusters and synchronizes the Capp status from the spoke cluster to the hub cluster.

func (*CappSyncReconciler) SetupWithManager

func (r *CappSyncReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL