configurationcontroller

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package configurationcontroller implements the logic of the Configuration Controller. It creates FirewallConfiguration resources, which apply firewall rules on each node, used to bypass the CNIs masquerade for packets that have to be redirected on the remote cluster.

Index

Constants

View Source
const (
	// PrePostroutingChainName is the name of the chain that manage masquerade-bypass.
	PrePostroutingChainName = "pre-postrouting"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationReconciler

type ConfigurationReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Options *Options
}

ConfigurationReconciler manage Configuration lifecycle.

func NewConfigurationReconciler

func NewConfigurationReconciler(cl client.Client, s *runtime.Scheme, opts *Options) *ConfigurationReconciler

NewConfigurationReconciler returns a new ConfigurationReconciler.

func (*ConfigurationReconciler) Reconcile

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

Reconcile manage Configuration lifecycle.

func (*ConfigurationReconciler) SetupWithManager

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

SetupWithManager register the ConfigurationReconciler to the manager.

type Options

type Options struct {
	FullMasqueradeEnabled bool
}

Options contains the configuration options for the ConfigurationController.

Jump to

Keyboard shortcuts

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