• Miek Gieben's avatar
    WIP: Parserequest2 cutback (#868) · 7e56cc74
    Miek Gieben authored
    * middleware/kubernetes: pull TXT out of parseRequest
    
    Put the TXT handling one layer higher and remove it from parseRequest.
    Also rename the podsvc field in there to podOrSvc. Now that it isn't
    used anymore for TXT record (dns-version) that was put in there. We can
    make this a boolean (in a future PR).
    
    Make parseRequest get an optional Zone that is from state.Zone and use
    that instead of its own code. Removed some tests and other smaller
    cleanups.
    
    Fixes #836
    
    * add this reverse
    
    * another check
    
    * readd
    
    * Rename to kPod and kService for some clarity
    7e56cc74
parse_test.go 3.41 KB