controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: BSD-3-Clause Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayControllerName = "gateway.netbird.io/controller"
)
View Source
const (
	HTTPRouteFinalizer = "gateway.netbird.io/httproute"
)
View Source
const (
	ResourceFinalizer = "gateway.netbird.io/resource"
)
View Source
const (
	// ServiceExposeAnnotation Service annotation for exposing
	ServiceExposeAnnotation = "netbird.io/expose"
)
View Source
const (
	SetupKeySecretKey = "setup-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayClassReconciler added in v0.3.0

type GatewayClassReconciler struct {
	client.Client
}

func (*GatewayClassReconciler) Reconcile added in v0.3.0

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

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

type GatewayReconciler struct {
	client.Client
}

func (*GatewayReconciler) Reconcile added in v0.3.0

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

func (*GatewayReconciler) SetupWithManager added in v0.3.0

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

type GroupReconciler added in v0.3.0

type GroupReconciler struct {
	client.Client

	Netbird *netbird.Client
}

func (*GroupReconciler) Reconcile added in v0.3.0

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

+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

type HTTPRouteReconciler struct {
	client.Client

	Netbird *netbird.Client
}

func (*HTTPRouteReconciler) Reconcile added in v0.3.0

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

nolint:gocyclo

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

type NBGroupReconciler struct {
	client.Client

	Netbird *netbird.Client
}

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

type NBPolicyReconciler struct {
	client.Client

	Netbird *netbird.Client
}

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

type NetworkResourceReconciler struct {
	client.Client

	Netbird *netbird.Client
}

func (*NetworkResourceReconciler) Reconcile added in v0.3.0

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

func (r *ServiceReconciler) 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 (*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

type SetupKeyReconciler struct {
	client.Client

	Netbird *netbird.Client
}

func (*SetupKeyReconciler) Reconcile added in v0.3.0

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

+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

type TCPRouteReconciler struct {
	client.Client
}

func (*TCPRouteReconciler) Reconcile added in v0.3.0

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

nolint:gocyclo

func (*TCPRouteReconciler) SetupWithManager added in v0.3.0

func (r *TCPRouteReconciler) 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