Reintroduce response status and header on kubectl verbose debug

Kubernetes-commit: 04b240ac0d16f0d5c8cc0c06ebd8ff1433ca8469
This commit is contained in:
Ricardo Katz 2022-03-04 11:39:53 -03:00 committed by Kubernetes Publisher
parent e0aaa37e5a
commit 9c049623c2

View File

@ -72,7 +72,7 @@ func HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTrip
func DebugWrappers(rt http.RoundTripper) http.RoundTripper {
switch {
case bool(klog.V(9).Enabled()):
rt = NewDebuggingRoundTripper(rt, DebugCurlCommand, DebugDetailedTiming, DebugResponseHeaders)
rt = NewDebuggingRoundTripper(rt, DebugCurlCommand, DebugURLTiming, DebugDetailedTiming, DebugResponseHeaders)
case bool(klog.V(8).Enabled()):
rt = NewDebuggingRoundTripper(rt, DebugJustURL, DebugRequestHeaders, DebugResponseStatus, DebugResponseHeaders)
case bool(klog.V(7).Enabled()):