"github.com/spf13/viper"
"log"
"net/http"
+ "time"
)
// API functions
return
}
+ for i := 0; i < 3; i++ {
+ if xapp, err = m.helm.Status(xapp.Name); xapp.Instances != nil {
+ break
+ }
+ time.Sleep(time.Duration(5) * time.Second)
+ }
+
respondWithJSON(w, http.StatusCreated, xapp)
m.sd.Publish(xapp, EventType("created"))