Documentation ¶
Index ¶
- Constants
- Variables
- func PeerFromBGPPeer(p *sartv1alpha1.BGPPeer) sartv1alpha1.Peer
- type AddressPoolReconciler
- type AddressRequestReconciler
- type BGPAdvertisementReconciler
- type BGPPeerReconciler
- type ClusterBGPReconciler
- type LBAllocationReconciler
- type NodeBGPReconciler
- type NodeWatcher
- type PeerStateWatcher
Constants ¶
const ( ServiceConditionTypeAdvertising string = "Advertising" ServiceConditionTypeAdvertised string = "Advertised" ServiceConditionTypeNotReady string = "NotReady" ServiceConditionReasonAdvertising string = "Advertising allocated LB addresses" ServiceConditionReasonAdvertised string = "Advertised allocated LB addresses" ServiceConditionReasonNotReady string = "No Ready Endpoints" AdvertisementTypeService string = "service" )
Variables ¶
var ( ErrPoolAnnotationIsNotFound error = errors.New("Pool name annotation is not found") ErrFromPoolAnnotationIsNotSet error = errors.New("Pool name allocated from is not set") ErrAllocatorIsNotFound error = errors.New("Allocator is not found") )
var (
ErrPeerIsNotEstablished error = fmt.Errorf("Peer is not established")
)
Functions ¶
func PeerFromBGPPeer ¶
func PeerFromBGPPeer(p *sartv1alpha1.BGPPeer) sartv1alpha1.Peer
Types ¶
type AddressPoolReconciler ¶
AddressPoolReconciler reconciles a AddressPool object
func (*AddressPoolReconciler) Reconcile ¶
func (r *AddressPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the AddressPool object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*AddressPoolReconciler) SetupWithManager ¶
func (r *AddressPoolReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AddressRequestReconciler ¶
AddressRequestReconciler reconciles a AddressRequest object
func (*AddressRequestReconciler) Reconcile ¶
func (r *AddressRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the AddressRequest object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*AddressRequestReconciler) SetupWithManager ¶
func (r *AddressRequestReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type BGPAdvertisementReconciler ¶
type BGPAdvertisementReconciler struct { client.Client Scheme *runtime.Scheme SpeakerEndpointPort uint32 SpeakerType speaker.SpeakerType // contains filtered or unexported fields }
BGPAdvertisementReconciler reconciles a BGPAdvertisement object
func NewBGPAdvertisementReconciler ¶
func NewBGPAdvertisementReconciler(client client.Client, scheme *runtime.Scheme, endpoint uint32, speakerType speaker.SpeakerType) *BGPAdvertisementReconciler
func (*BGPAdvertisementReconciler) SetupWithManager ¶
func (r *BGPAdvertisementReconciler) SetupWithManager(mgr ctrl.Manager) error
type BGPPeerReconciler ¶
type BGPPeerReconciler struct { client.Client Scheme *runtime.Scheme SpeakerEndpointPort uint32 SpeakerType speaker.SpeakerType }
BGPPeerReconciler reconciles a BGPPeer object
func (*BGPPeerReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the BGPPeer object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*BGPPeerReconciler) SetupWithManager ¶
func (r *BGPPeerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterBGPReconciler ¶
ClusterBGPReconciler reconciles a ClusterBGP object
func (*ClusterBGPReconciler) Reconcile ¶
func (r *ClusterBGPReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ClusterBGP object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*ClusterBGPReconciler) SetupWithManager ¶
func (r *ClusterBGPReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type LBAllocationReconciler ¶
type LBAllocationReconciler struct { client.Client Scheme *runtime.Scheme Allocators map[string]map[string]allocator.Allocator // contains filtered or unexported fields }
func (*LBAllocationReconciler) SetupWithManager ¶
func (r *LBAllocationReconciler) SetupWithManager(mgr ctrl.Manager) error
type NodeBGPReconciler ¶
type NodeBGPReconciler struct { client.Client Scheme *runtime.Scheme SpeakerEndpointPort uint32 SpeakerType speaker.SpeakerType }
NodeBGPReconciler reconciles a NodeBGP object
func (*NodeBGPReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NodeBGP object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*NodeBGPReconciler) SetupWithManager ¶
func (r *NodeBGPReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NodeWatcher ¶
type NodeWatcher struct { client.Client Scheme *runtime.Scheme SpeakerEndpointPort uint32 SpeakerType speaker.SpeakerType }
func (*NodeWatcher) SetupWithManager ¶
func (n *NodeWatcher) SetupWithManager(mgr ctrl.Manager) error
type PeerStateWatcher ¶
type PeerStateWatcher struct { client.Client SpeakerEndpoint uint32 SpeakerType speaker.SpeakerType // contains filtered or unexported fields }
func NewPeerStateWatcher ¶
func NewPeerStateWatcher(c client.Client, endpoint uint32, speakerType speaker.SpeakerType, interval uint32) *PeerStateWatcher
func (*PeerStateWatcher) SetupWithManager ¶
func (r *PeerStateWatcher) SetupWithManager(mgr ctrl.Manager) error