bpfmanoperator

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAndConfigureBpfmanDs

func LoadAndConfigureBpfmanDs(config *corev1.ConfigMap, path string) *appsv1.DaemonSet

func LoadCsiDriver

func LoadCsiDriver(path string) *storagev1.CSIDriver

func LoadRestrictedSecurityContext

func LoadRestrictedSecurityContext(path string) *osv1.SecurityContextConstraints

LoadRestrictedSecurityContext loads the bpfman-restricted SCC from disk which users can bind to in order to utilize bpfman in an unprivileged way.

Types

type BpfApplicationReconciler added in v0.5.0

type BpfApplicationReconciler struct {
	ClusterProgramReconciler
}

BpfApplicationReconciler reconciles a BpfApplication object

func (*BpfApplicationReconciler) Reconcile added in v0.5.0

func (*BpfApplicationReconciler) SetupWithManager added in v0.5.0

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

SetupWithManager sets up the controller with the Manager.

type BpfNsApplicationReconciler added in v0.5.5

type BpfNsApplicationReconciler struct {
	NamespaceProgramReconciler
}

BpfNsApplicationReconciler reconciles a BpfNsApplication object

func (*BpfNsApplicationReconciler) Reconcile added in v0.5.5

func (*BpfNsApplicationReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type BpfProgListOper added in v0.5.5

type BpfProgListOper[T any] interface {
	GetItems() []T
}

type BpfProgOper added in v0.5.5

type BpfProgOper interface {
	GetName() string

	GetLabels() map[string]string
	GetStatus() *bpfmaniov1alpha1.BpfProgramStatus
}

type BpfmanConfigReconciler

type BpfmanConfigReconciler struct {
	ClusterProgramReconciler
	BpfmanStandardDeployment string
	CsiDriverDeployment      string
	RestrictedSCC            string
	IsOpenshift              bool
}

func (*BpfmanConfigReconciler) Reconcile

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

func (*BpfmanConfigReconciler) ReconcileBpfmanConfig

func (r *BpfmanConfigReconciler) ReconcileBpfmanConfig(ctx context.Context, req ctrl.Request, bpfmanConfig *corev1.ConfigMap) (ctrl.Result, error)

func (*BpfmanConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ClusterProgramReconciler added in v0.5.5

type ClusterProgramReconciler struct {
	ReconcilerCommon[bpfmaniov1alpha1.BpfProgram, bpfmaniov1alpha1.BpfProgramList]
}

type FentryProgramReconciler

type FentryProgramReconciler struct {
	ClusterProgramReconciler
}

func (*FentryProgramReconciler) Reconcile

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

func (*FentryProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type FexitProgramReconciler

type FexitProgramReconciler struct {
	ClusterProgramReconciler
}

func (*FexitProgramReconciler) Reconcile

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

func (*FexitProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type KprobeProgramReconciler

type KprobeProgramReconciler struct {
	ClusterProgramReconciler
}

func (*KprobeProgramReconciler) Reconcile

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

func (*KprobeProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NamespaceProgramReconciler added in v0.5.5

type NamespaceProgramReconciler struct {
	ReconcilerCommon[bpfmaniov1alpha1.BpfNsProgram, bpfmaniov1alpha1.BpfNsProgramList]
}

type ProgramReconciler

type ProgramReconciler[T BpfProgOper, TL BpfProgListOper[T]] interface {
	// contains filtered or unexported methods
}

bpfmanReconciler defines a k8s reconciler which can program bpfman.

type ReconcilerCommon

type ReconcilerCommon[T BpfProgOper, TL BpfProgListOper[T]] struct {
	client.Client
	Scheme *runtime.Scheme
	Logger logr.Logger
}

ReconcilerCommon reconciles a BpfProgram object

type TcNsProgramReconciler added in v0.5.5

type TcNsProgramReconciler struct {
	NamespaceProgramReconciler
}

func (*TcNsProgramReconciler) Reconcile added in v0.5.5

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

func (*TcNsProgramReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type TcProgramReconciler

type TcProgramReconciler struct {
	ClusterProgramReconciler
}

func (*TcProgramReconciler) Reconcile

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

func (*TcProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TcxNsProgramReconciler added in v0.5.5

type TcxNsProgramReconciler struct {
	NamespaceProgramReconciler
}

func (*TcxNsProgramReconciler) Reconcile added in v0.5.5

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

func (*TcxNsProgramReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type TcxProgramReconciler added in v0.5.5

type TcxProgramReconciler struct {
	ClusterProgramReconciler
}

func (*TcxProgramReconciler) Reconcile added in v0.5.5

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

func (*TcxProgramReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type TracepointProgramReconciler

type TracepointProgramReconciler struct {
	ClusterProgramReconciler
}

func (*TracepointProgramReconciler) Reconcile

func (*TracepointProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UprobeNsProgramReconciler added in v0.5.5

type UprobeNsProgramReconciler struct {
	NamespaceProgramReconciler
}

func (*UprobeNsProgramReconciler) Reconcile added in v0.5.5

func (*UprobeNsProgramReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type UprobeProgramReconciler

type UprobeProgramReconciler struct {
	ClusterProgramReconciler
}

func (*UprobeProgramReconciler) Reconcile

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

func (*UprobeProgramReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type XdpNsProgramReconciler added in v0.5.5

type XdpNsProgramReconciler struct {
	NamespaceProgramReconciler
}

func (*XdpNsProgramReconciler) Reconcile added in v0.5.5

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

func (*XdpNsProgramReconciler) SetupWithManager added in v0.5.5

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

SetupWithManager sets up the controller with the Manager.

type XdpProgramReconciler

type XdpProgramReconciler struct {
	ClusterProgramReconciler
}

func (*XdpProgramReconciler) Reconcile

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

func (*XdpProgramReconciler) SetupWithManager

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