bgpv2

package
v1.18.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"bgp-cp-operator",
	"BGP Control Plane Operator",
	cell.ProvidePrivate(newSecretResource),
	cell.Invoke(registerBGPResourceManager),
	cell.Invoke(registerPeerConfigStatusReconciler),
	metrics.Metric(NewBGPOperatorMetrics),
)

Functions

func TrimError

func TrimError(err error, maxLen int) error

TrimError trims error message to maxLen.

Types

type BGPOperatorMetrics added in v1.17.0

type BGPOperatorMetrics struct {
	// BGPClusterConfigErrorCount is the number of errors during reconciliation of the cluster
	// configuration.
	BGPClusterConfigErrorCount metric.Vec[metric.Counter]
}

BGPOperatorMetrics contains all metrics for the BGP control plane operator.

func NewBGPOperatorMetrics added in v1.17.0

func NewBGPOperatorMetrics() *BGPOperatorMetrics

NewBGPOperatorMetrics returns a new BGPOperatorMetrics with all metrics initialized.

type BGPParams

type BGPParams struct {
	cell.In

	Logger       *slog.Logger
	LC           cell.Lifecycle
	Clientset    k8s_client.Clientset
	DaemonConfig *option.DaemonConfig
	JobGroup     job.Group
	Health       cell.Health
	Metrics      *BGPOperatorMetrics

	// resource tracking
	ClusterConfigResource      resource.Resource[*cilium_api_v2alpha1.CiliumBGPClusterConfig]
	NodeConfigOverrideResource resource.Resource[*cilium_api_v2alpha1.CiliumBGPNodeConfigOverride]
	NodeConfigResource         resource.Resource[*cilium_api_v2alpha1.CiliumBGPNodeConfig]
	PeerConfigResource         resource.Resource[*cilium_api_v2alpha1.CiliumBGPPeerConfig]
	NodeResource               resource.Resource[*cilium_api_v2.CiliumNode]
}

type BGPResourceManager

type BGPResourceManager struct {
	// contains filtered or unexported fields
}

func (*BGPResourceManager) Run

func (b *BGPResourceManager) Run(ctx context.Context) (err error)

Run starts the BGPResourceManager operator.

Jump to

Keyboard shortcuts

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