Enable using protobufs in e2e tests

This commit is contained in:
Wojciech Tyczynski
2016-05-09 10:57:26 +02:00
parent 2f1a9dd65c
commit cb875e0f8c
2 changed files with 5 additions and 0 deletions

View File

@@ -123,6 +123,9 @@ func (f *Framework) BeforeEach() {
Expect(err).NotTo(HaveOccurred())
config.QPS = f.options.ClientQPS
config.Burst = f.options.ClientBurst
if TestContext.KubeAPIContentType != "" {
config.ContentType = TestContext.KubeAPIContentType
}
c, err := loadClientFromConfig(config)
Expect(err).NotTo(HaveOccurred())
f.Client = c