• Miek Gieben's avatar
    mw/kubernetes: Rewrite parseRequest and Readability improvements (#939) · 6a4e69eb
    Miek Gieben authored
    * mw/kubernetes: rewrite parseRequest
    
    Stop looking at the qtype in parseRequest and make k.Namespace a map.
    Fallout from this is that pkg/strings as it is not used anymore. Also
    add a few helper functions to make unexposed namespaces easier to see in
    the code.
    
    Add wildcard tests to the middleware tests.
    
    * Fix tests
    
    Add a whole bunch of comments to document what we are trying to do.
    
    * This is now answered
    
    * up coverage
    
    * duh
    
    * Update testcase
    
    * Make it nodata
    6a4e69eb
handler_test.go 9.93 KB