Documentation ¶
Index ¶
Constants ¶
const ( ManagedByKSLabelKeyPrefix = "managed-by.kubestellar.io" TransportLabelPrefix = "transport.kubestellar.io" SingletonstatusLabelKey = "managed-by.kubestellar.io/singletonstatus" )
Variables ¶
This section is empty.
Functions ¶
func NewAgentCommand ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent tracks objects applied by the work agent by watching AppliedManifestWork* objects. These objects list the GVR, name and namespace (the latter for namespaced objects) of each object applied by the related *ManifestWork*. The status add-on then uses this information to ensure that a singleton informer is started for each GVR, and to track status updates of each tracked object. The status add-on then creates/updates *WorkStatus* objects in the ITS with the status of tracked objects in the namespace associated with the WEC cluster. A `WorkStatus` object contains status for exactly one object, so that status updates for one object do not require updates of a whole bundle.
type AgentOptions ¶
type AgentOptions struct { MetricsAddr string EnableLeaderElection bool ProbeAddr string HubKubeconfigFile string SpokeClusterName string AddonName string AddonNamespace string }
AgentOptions defines the flags for workload agent
func NewAgentOptions ¶
func NewAgentOptions(addonName string) *AgentOptions
NewAgentOptions returns the flags with default value set
func (*AgentOptions) AddFlags ¶
func (o *AgentOptions) AddFlags(cmd *cobra.Command)