Conversation
merenbach
left a comment
There was a problem hiding this comment.
Looks good. Just a couple minor concerns regarding DRY and bigger-than-one's-head methods. :-D
server/application/application.go
Outdated
There was a problem hiding this comment.
Wondering if dividing this method into separate methods called from here might help improve future maintainability (and maybe even unit testability).
There was a problem hiding this comment.
I do agree in principle, but I generally prefer to do something like that on an as-needed basis to avoid function sprawl. For now the only callers that need this are application add and update, and they just want to validate the app as a whole, instead of validating different aspects.
util/ksonnet/ksonnet.go
Outdated
There was a problem hiding this comment.
We have a function in util/cli/config.go that unmarshals local files and has unit tests. Wondering if it might be useful here for DRY. (Please see util/cli/config_test.go, cmd/argocd/commands/app.go, and util/localconfig/localconfig.go for usage examples.)
There was a problem hiding this comment.
Thanks for the pointer, fixed.
dc62cb8 to
caf94f3
Compare
caf94f3 to
cb004ac
Compare
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
Created a STARTER_TEAM.md file to comply with InnerSource requirements. Contributes to: ibm-saas-platform/workitems#4250 Signed-off-by: Sujeily Fonseca <sujeily.fonseca@ibm.com>
When adding an application, the API server will now validate: