Fix components crash before crds creation (#602)

* Wait for CRDs creation for 30 sec when component start
* Fix ensureCRD return nil while the error is not empty
This commit is contained in:
Ta-Ching Chen
2018-04-04 15:40:55 +08:00
committed by GitHub
parent 9406720e8a
commit 1dbf8f9243
10 changed files with 67 additions and 24 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ func Start(port int) {
log.Fatalf("Failed to create fission CRDs: %v", err)
}
fc.WaitForCRDs()
err = fc.WaitForCRDs()
if err != nil {
log.Fatalf("Error waiting for CRDs: %v", err)
}
api, err := MakeAPI()
if err != nil {