Documentation ¶
Overview ¶
Package fabric contains the logic to manage internal network fabric on each node.
Index ¶
- Constants
- Variables
- func ForgeFirewallTargetLabels() map[string]string
- func ForgeFirewallTargetLabelsSingleNode(nodeName string) map[string]string
- func ForgeRouteTargetLabels() map[string]string
- func InitFlags(flagset *pflag.FlagSet, opts *Options)
- func MarkFlagsRequired(cmd *cobra.Command) error
- type FlagName
- type InternalFabricReconciler
- type Options
Constants ¶
const ( // FirewallCategoryTargetValue is the value used by the firewallconfiguration controller // to reconcile only resources related to netwok fabric. FirewallCategoryTargetValue = "fabric" // FirewallSubCategoryTargetAllNodesValue is the value used by the firewallconfiguration controller // to reconcile only resources related to netwok fabric on all nodes. FirewallSubCategoryTargetAllNodesValue = "all-nodes" // FirewallSubCategoryTargetSingleNodeValue is the value used by the firewallconfiguration controller // to reconcile only resources related to netwok fabric on a specific node. FirewallSubCategoryTargetSingleNodeValue = "single-node" // RouteCategoryTargetValue is the value used by the routecontroller to reconcile only resources related to network fabric. RouteCategoryTargetValue = "fabric" )
Variables ¶
var RequiredFlags = []FlagName{ FlagNodeNameName, }
RequiredFlags contains the list of the mandatory flags.
Functions ¶
func ForgeFirewallTargetLabels ¶
ForgeFirewallTargetLabels returns the labels used by the firewallconfiguration controller to reconcile only resources related to network fabric.
func ForgeFirewallTargetLabelsSingleNode ¶
ForgeFirewallTargetLabelsSingleNode returns the labels used by the firewallconfiguration controller to reconcile only resources related to network fabric on a specific node.
func ForgeRouteTargetLabels ¶
ForgeRouteTargetLabels returns the labels used by the routecontroller to reconcile only resources related to network fabric.
func MarkFlagsRequired ¶
MarkFlagsRequired marks the flags as required.
Types ¶
type FlagName ¶
type FlagName string
FlagName is the type for the name of the flags.
const ( // FlagNodeNameName is the name of the node where the pod is scheduled. FlagNodeNameName FlagName = "nodename" // FlagNameMetricsAddress is the address for the metrics endpoint. FlagNameMetricsAddress FlagName = "metrics-address" // FlagNameProbeAddr is the address for the health probe endpoint. FlagNameProbeAddr FlagName = "health-probe-bind-address" // FlagEnableARP is the flag to enable ARP. FlagEnableARP FlagName = "enable-arp" )
type InternalFabricReconciler ¶
type InternalFabricReconciler struct { client.Client Scheme *runtime.Scheme EventsRecorder record.EventRecorder Options *Options }
InternalFabricReconciler manage internalfabric.
func NewInternalFabricReconciler ¶
func NewInternalFabricReconciler(cl client.Client, s *runtime.Scheme, er record.EventRecorder, opts *Options) (*InternalFabricReconciler, error)
NewInternalFabricReconciler returns a new InternalFabricReconciler.
func (*InternalFabricReconciler) Reconcile ¶
func (r *InternalFabricReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile manage InternalFabrics.
func (*InternalFabricReconciler) SetupWithManager ¶
func (r *InternalFabricReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager register the InternalFabricReconciler to the manager.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package sourcedetector contains the logic to detect the source IP used by nodes to contact pods.
|
Package sourcedetector contains the logic to detect the source IP used by nodes to contact pods. |