mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Rebased and fixed test cases
This commit is contained in:
		@@ -24,7 +24,6 @@ import (
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/healthz"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/httplog"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/version"
 | 
			
		||||
	"github.com/golang/glog"
 | 
			
		||||
 
 | 
			
		||||
@@ -89,14 +89,14 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 | 
			
		||||
	}
 | 
			
		||||
	storage, ok := r.storage[resourceName]
 | 
			
		||||
	if !ok {
 | 
			
		||||
		httplog.LogOf(w).Addf("'%v' has no storage object", resourceName)
 | 
			
		||||
		httplog.LogOf(req, w).Addf("'%v' has no storage object", resourceName)
 | 
			
		||||
		notFound(w, req)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	redirector, ok := storage.(Redirector)
 | 
			
		||||
	if !ok {
 | 
			
		||||
		httplog.LogOf(w).Addf("'%v' is not a redirector", resourceName)
 | 
			
		||||
		httplog.LogOf(req, w).Addf("'%v' is not a redirector", resourceName)
 | 
			
		||||
		notFound(w, req)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user