Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #95400: Local Traffic Detector: Add two new modes #109209

Commits on Mar 31, 2022

  1. Local Traffic Detector: Add two new modes

    This PR introduces two new modes for detecting
    local traffic in a cluster.
    1) detectLocalByBridgeInterface: This takes a bridge name
    as argument and decides all traffic that match on their
    originating interface being that of this bridge, shall be
    considered as local pod traffic.
    2) detectLocalByInterfaceNamePrefix: This takes an interface prefix
    name as argument and decides all traffic that match on their
    originating interface names having a prefix that matches this
    argument shall be considered as local pod traffic.
    
    Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
    tssurya authored and wedaly committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    1b3dbd7 View commit details
    Browse the repository at this point in the history
  2. Enable local traffic detection using the interface options

    This commit adds the framework for the new local detection
    modes BridgeInterface and InterfaceNamePrefix to work.
    
    Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
    tssurya authored and wedaly committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    fceba98 View commit details
    Browse the repository at this point in the history
  3. Add validation for bridge-interface and interface-name-prefix

    Co-authored-by: Will Daly <widaly@microsoft.com>
    Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
    tssurya and wedaly committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    c49b17b View commit details
    Browse the repository at this point in the history
  4. Add shim JumpIfLocal and JumpIfNotLocal to backport to 1.23

    Kubernetes 1.24 changed the LocalTrafficDetector interface
    in commit e354964.
    
    To backport the BridgeInterface and InterfaceNamePrefix
    detect local modes to 1.23, add shim methods JumpIfLocal and
    JumpIfNotLocal so the new implementation satisfy the
    LocalTrafficDetector interface as defined in 1.23.
    
    Signed-off-by: Will Daly <widaly@microsoft.com>
    wedaly committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    81acd32 View commit details
    Browse the repository at this point in the history