All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lua.ingress_current_zone_header.lua Maven / Gradle / Ivy

There is a newer version: 0.22.4
Show newest version
function envoy_on_request(handle)
end

function envoy_on_response(handle)
 local traffic_splitting_zone_header_name = handle:metadata():get("traffic_splitting_zone_header_name") or ""
    local current_zone = handle:metadata():get("current_zone") or ""
    if traffic_splitting_zone_header_name == "" then
        return
    end
    handle:headers():add(traffic_splitting_zone_header_name, current_zone)
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy