Spec validator, better errors, apply waits for previous build (#560)

Adds a validator, invoked through `fission spec validate` and before `fission spec apply`. The validator checks for duplicate names, dangling references, and unused resources.

Also attempts to fix a race between CLI and builder.  Avoids replacing a package while it's building, instead waiting for the build status to change from pending before updating it.
This commit is contained in:
Soam Vasani
2018-04-02 14:33:31 -07:00
committed by GitHub
parent 6d61f6e5eb
commit 5baf67f143
3 changed files with 306 additions and 49 deletions
+2
View File
@@ -60,3 +60,5 @@ import:
version: ~1.1.0
- package: github.com/imdario/mergo
version: ~0.3.2
- package: github.com/hashicorp/go-multierror
- package: github.com/hashicorp/errwrap