controllers

package
v0.0.0-...-1e43b4c Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngressNodeFirewallManifestPath = "./bindata/manifests/daemon"
)

Variables

Functions

This section is empty.

Types

type IngressNodeFirewallConfigReconciler

type IngressNodeFirewallConfigReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	Log          logr.Logger
	Namespace    string
	PlatformInfo platform.PlatformInfo
}

IngressNodeFirewallConfigReconciler reconciles a IngressNodeFirewallConfig object

func (*IngressNodeFirewallConfigReconciler) 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. the IngressNodeFirewallConfig 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.12.1/pkg/reconcile

func (*IngressNodeFirewallConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IngressNodeFirewallNodeStateReconciler

type IngressNodeFirewallNodeStateReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	NodeName  string
	Namespace string
	Log       logr.Logger
	Stats     *metrics.Statistics
}

IngressNodeFirewallNodeStateReconciler reconciles a IngressNodeFirewallNodeState object

func (*IngressNodeFirewallNodeStateReconciler) 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 IngressNodeFirewallNodeState 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.12.1/pkg/reconcile

func (*IngressNodeFirewallNodeStateReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IngressNodeFirewallReconciler

type IngressNodeFirewallReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Log       logr.Logger
	Namespace string
}

IngressNodeFirewallReconciler reconciles a IngressNodeFirewall object

func (*IngressNodeFirewallReconciler) 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.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.1/pkg/reconcile

func (*IngressNodeFirewallReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager. In addition to watching IngressNodeFirewall this also watches all objects of Kind Node and any change to a node will trigger a reconciliation request. Additionally, changes to objects of type IngressNodeFirewallNodeState with an owner references will lead to reconciliation as well. Given that an IngressNodeFirewallNodeState can have multiple owners, reconciliation will be triggered for any of them (thus, IsController: false).

Jump to

Keyboard shortcuts

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