-
Notifications
You must be signed in to change notification settings - Fork 59
Add build-tool cli with a crd validation command #3
base: master
Are you sure you want to change the base?
Conversation
Gopkg.toml
Outdated
@@ -85,6 +86,10 @@ required = [ | |||
# revision = "6702109cc68eb6fe6350b83e14407c8d7309fd1a" | |||
version = "kubernetes-1.13.5" | |||
|
|||
[[override]] | |||
name = "k8s.io/kube-openapi" | |||
revision = "743ec37842bffe49dd4221d9026f30fb1d5adbc4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do they not have versions?
Gopkg.toml
Outdated
|
||
[[constraint]] | ||
name = "github.com/kubeflow/crd-validation" | ||
source = "github.com/bnsblue/crd-validation.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to get this forked under lyft... if that proved to be too hard, then this is ok we can switch it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I am waiting on the fork request to be approved...
return err | ||
} | ||
|
||
compilerErrors.SetIncludeSource() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
err := c.initConfig() | ||
var generator *crd.FlyteWorkflowGenerator | ||
if err != nil { | ||
log.Println("Output will be written to Stdout") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you don't just fail here instead of trying to "recover" ?
cmd/build-tool/main.go
Outdated
fmt.Println(err) | ||
os.Exit(1) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
} | |
} | |
Add a new line at the end of the file Co-Authored-By: Haytham AbuelFutuh <[email protected]>
Co-Authored-By: Haytham AbuelFutuh <[email protected]>
Co-Authored-By: Haytham AbuelFutuh <[email protected]>
ping @bnsblue, do we want to move ahead with this? |
@kumare3 Yes we do. I'll take some time to merge this during the next week |
* add namepace configuration * add namespace files * remove unused var * update propeller executor config * use propeller executor configuration * to lowercase * fix conflicts * update namespace test * remove namespaceMapping variable * fix compile issues * add project-domain option and remove incorrect log messages * upd mock configuration provider * update unit tests * Merge logs on task execution event updates (flyteorg#18) * use fallthrough * Correct Lint Errors and Add Documentation on Pre-Commit (flyteorg#19) * README update * Fix lint errors * add namepace configuration * add namespace files * remove unused var * update propeller executor config * use propeller executor configuration * to lowercase * fix conflicts * update namespace test * remove namespaceMapping variable * fix compile issues * add project-domain option and remove incorrect log messages * upd mock configuration provider * update unit tests * use fallthrough * fix conflicts * fix more conflicts * lint * remove duplicate package * fix lint errors
This PR adds support of crd validation as a command in a new CLI in flytepropeller