Documentation
¶
Index ¶
- Constants
- type GatewayClassReconciler
- type GatewayReconciler
- type GroupReconciler
- type HTTPRouteReconciler
- type NBGroupReconciler
- type NBPolicyReconciler
- type NBResourceReconciler
- type NBRoutingPeerReconciler
- type NBSetupKeyReconciler
- type NetworkResourceReconciler
- type NetworkRouterReconciler
- type ServiceReconciler
- type SetupKeyReconciler
- type TCPRouteReconciler
Constants ¶
const (
GatewayControllerName = "gateway.netbird.io/controller"
)
const (
HTTPRouteFinalizer = "gateway.netbird.io/httproute"
)
const (
ResourceFinalizer = "gateway.netbird.io/resource"
)
const (
// ServiceExposeAnnotation Service annotation for exposing
ServiceExposeAnnotation = "netbird.io/expose"
)
const (
SetupKeySecretKey = "setup-key"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayClassReconciler ¶ added in v0.3.0
func (*GatewayClassReconciler) SetupWithManager ¶ added in v0.3.0
func (r *GatewayClassReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GatewayReconciler ¶ added in v0.3.0
func (*GatewayReconciler) SetupWithManager ¶ added in v0.3.0
func (r *GatewayReconciler) SetupWithManager(mgr ctrl.Manager) error
type GroupReconciler ¶ added in v0.3.0
func (*GroupReconciler) Reconcile ¶ added in v0.3.0
+kubebuilder:rbac:groups=netbird.io,resources=groups,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=netbird.io,resources=groups/status,verbs=get;update;patch +kubebuilder:rbac:groups=netbird.io,resources=groups/finalizers,verbs=update
func (*GroupReconciler) SetupWithManager ¶ added in v0.3.0
func (r *GroupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HTTPRouteReconciler ¶ added in v0.3.0
func (*HTTPRouteReconciler) SetupWithManager ¶ added in v0.3.0
func (r *HTTPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NBGroupReconciler ¶
NBGroupReconciler reconciles a NBGroup object
func (*NBGroupReconciler) Reconcile ¶
func (r *NBGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err 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.
func (*NBGroupReconciler) SetupWithManager ¶
func (r *NBGroupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NBPolicyReconciler ¶
NBPolicyReconciler reconciles a NBPolicy object
func (*NBPolicyReconciler) Reconcile ¶
func (r *NBPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err 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.
func (*NBPolicyReconciler) SetupWithManager ¶
func (r *NBPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NBResourceReconciler ¶
type NBResourceReconciler struct {
client.Client
Netbird *netbird.Client
AllowAutomaticPolicyCreation bool
ClusterName string
DefaultLabels map[string]string
}
NBResourceReconciler reconciles a NBResource object
func (*NBResourceReconciler) Reconcile ¶
func (r *NBResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err 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.
func (*NBResourceReconciler) SetupWithManager ¶
func (r *NBResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NBRoutingPeerReconciler ¶
type NBRoutingPeerReconciler struct {
client.Client
Netbird *netbird.Client
ClientImage string
ClusterName string
ManagementURL string
NamespacedNetworks bool
DefaultLabels map[string]string
}
NBRoutingPeerReconciler reconciles a NBRoutingPeer object
func (*NBRoutingPeerReconciler) Reconcile ¶
func (r *NBRoutingPeerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err 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.
func (*NBRoutingPeerReconciler) SetupWithManager ¶
func (r *NBRoutingPeerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NBSetupKeyReconciler ¶
type NBSetupKeyReconciler struct {
client.Client
ReferencedSecrets map[string]types.NamespacedName
}
NBSetupKeyReconciler reconciles a NBSetupKey object
func (*NBSetupKeyReconciler) Reconcile ¶
func (r *NBSetupKeyReconciler) 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.
func (*NBSetupKeyReconciler) SetupWithManager ¶
func (r *NBSetupKeyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NetworkResourceReconciler ¶ added in v0.3.0
func (*NetworkResourceReconciler) Reconcile ¶ added in v0.3.0
func (r *NetworkResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
nolint:gocyclo
func (*NetworkResourceReconciler) SetupWithManager ¶ added in v0.3.0
func (r *NetworkResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
type NetworkRouterReconciler ¶ added in v0.3.0
type NetworkRouterReconciler struct {
client.Client
Netbird *netbird.Client
ManagementURL string
ClientImage string
}
func (*NetworkRouterReconciler) Reconcile ¶ added in v0.3.0
func (r *NetworkRouterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
nolint:gocyclo
func (*NetworkRouterReconciler) SetupWithManager ¶ added in v0.3.0
func (r *NetworkRouterReconciler) SetupWithManager(mgr ctrl.Manager) error
type ServiceReconciler ¶
type ServiceReconciler struct {
client.Client
ClusterName string
ClusterDNS string
NamespacedNetworks bool
ControllerNamespace string
DefaultLabels map[string]string
}
ServiceReconciler reconciles a Service object
func (*ServiceReconciler) 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.
func (*ServiceReconciler) SetupWithManager ¶
func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SetupKeyReconciler ¶ added in v0.3.0
func (*SetupKeyReconciler) Reconcile ¶ added in v0.3.0
+kubebuilder:rbac:groups=netbird.io,resources=setupkeys,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=netbird.io,resources=setupkeys/status,verbs=get;update;patch +kubebuilder:rbac:groups=netbird.io,resources=setupkeys/finalizers,verbs=update
func (*SetupKeyReconciler) SetupWithManager ¶ added in v0.3.0
func (r *SetupKeyReconciler) SetupWithManager(mgr ctrl.Manager) error
type TCPRouteReconciler ¶ added in v0.3.0
func (*TCPRouteReconciler) SetupWithManager ¶ added in v0.3.0
func (r *TCPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
- gateway_controller.go
- gatewayclass_controller.go
- group_controller.go
- httproute_controller.go
- nbgroup_controller.go
- nbpolicy_controller.go
- nbresource_controller.go
- nbroutingpeer_controller.go
- nbsetupkey_controller.go
- networkresource_controller.go
- networkrouter_controller.go
- service_controller.go
- setupkey_controller.go
- tcproute_controller.go