sgpp

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnforcingModeStrict               EnforcingMode = "strict"
	EnforcingModeStandard             EnforcingMode = "standard"
	VpcCNINodeEventActionForTrunk     string        = "NeedTrunk"
	TrunkEventNote                    string        = "vpc.amazonaws.com/has-trunk-attached=false"
	VpcCNINodeEventActionForEniConfig string        = "NeedEniConfig"
	VpcCNIEventReason                 string        = "AwsNodeNotificationToRc"
)

Variables

This section is empty.

Functions

func BuildHostVethNamePrefix

func BuildHostVethNamePrefix(hostVethNamePrefix string, podSGEnforcingMode EnforcingMode) string

BuildHostVethNamePrefix computes the name prefix for host-side veth pairs for SGPP pods for the "standard" mode, we use the same hostVethNamePrefix as normal pods, which is "eni" by default, but can be overwritten as well. for the "strict" mode, we use dedicated "vlan" hostVethNamePrefix, which is to opt-out SNAT support and opt-out calico's workload management.

Types

type EnforcingMode

type EnforcingMode string
const (
	// DefaultEnforcingMode is the default enforcing mode if not specified explicitly.
	DefaultEnforcingMode EnforcingMode = EnforcingModeStrict
)

func LoadEnforcingModeFromEnv

func LoadEnforcingModeFromEnv() EnforcingMode

LoadEnforcingModeFromEnv tries to load the enforcing mode from environment variable and fall-back to DefaultEnforcingMode.

Jump to

Keyboard shortcuts

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