pkg/sgpp/constants.go (14 lines of code) (raw):
package sgpp
type EnforcingMode string
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"
)
const (
// DefaultEnforcingMode is the default enforcing mode if not specified explicitly.
DefaultEnforcingMode EnforcingMode = EnforcingModeStrict
// environment variable knob to decide EnforcingMode for SGPP feature.
envEnforcingMode = "POD_SECURITY_GROUP_ENFORCING_MODE"
)