mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix failure running make build test in cluster/images/etcd
				
					
				
			Change-Id: I5072d06402d211c17c8c5fb952e193bd1e57c07d
This commit is contained in:
		@@ -25,6 +25,7 @@ import (
 | 
				
			|||||||
	"crypto/x509"
 | 
						"crypto/x509"
 | 
				
			||||||
	"crypto/x509/pkix"
 | 
						"crypto/x509/pkix"
 | 
				
			||||||
	"encoding/pem"
 | 
						"encoding/pem"
 | 
				
			||||||
 | 
						"flag"
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"io/ioutil"
 | 
						"io/ioutil"
 | 
				
			||||||
	"math/big"
 | 
						"math/big"
 | 
				
			||||||
@@ -37,6 +38,7 @@ import (
 | 
				
			|||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"github.com/blang/semver"
 | 
						"github.com/blang/semver"
 | 
				
			||||||
 | 
						"k8s.io/klog"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
@@ -45,6 +47,13 @@ var (
 | 
				
			|||||||
	testVersionLatest     = &EtcdVersion{semver.MustParse("3.1.12")}
 | 
						testVersionLatest     = &EtcdVersion{semver.MustParse("3.1.12")}
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						// Enable klog which is used in dependencies
 | 
				
			||||||
 | 
						klog.InitFlags(nil)
 | 
				
			||||||
 | 
						flag.Set("logtostderr", "true")
 | 
				
			||||||
 | 
						flag.Set("v", "9")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestMigrate(t *testing.T) {
 | 
					func TestMigrate(t *testing.T) {
 | 
				
			||||||
	migrations := []struct {
 | 
						migrations := []struct {
 | 
				
			||||||
		title        string
 | 
							title        string
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user