fed: Create integration test fixture for api

This commit is contained in:
Maru Newby
2017-02-17 16:47:37 -08:00
parent 82dc083016
commit dd2a8127a5
10 changed files with 266 additions and 79 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package main
import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/kubernetes/federation/cmd/federation-apiserver/app"
"k8s.io/kubernetes/federation/cmd/federation-apiserver/app/options"
)
@@ -30,7 +31,7 @@ func NewFederationAPIServer() *Server {
SimpleUsage: "federation-apiserver",
Long: "The API entrypoint for the federation control plane",
Run: func(_ *Server, args []string) error {
return app.Run(s)
return app.Run(s, wait.NeverStop)
},
}
s.AddFlags(hks.Flags())