Split up CRD manifests into their own folder#674
Conversation
jessesuen
left a comment
There was a problem hiding this comment.
-
we have a unit test TestGenerateYamlManifestInDir which is dependent on the number of manifests in the base directory. Can you just update the number from 22 to 20 to get the unit test to pass?
-
There is an e2e test which also depends on the location of the CRD manifests. in fixture.go, this would have to be updated:
func (f *Fixture) setup() error {
_, err := exec.Command("kubectl", "apply", "-f", "../../manifests/base/application-crd.yaml", "-f", "../../manifests/base/appproject-crd.yaml").Output()
66f4ecc to
0de75f4
Compare
|
I fixed the tests. I must have missed the GitHub notification for this one, sorry! |
hack/update-manifests.sh
Outdated
There was a problem hiding this comment.
Not sure whether this is a BSD vs GNU thing, but the previous version failed for me on Linux. Hope this works on OSX, too?
There was a problem hiding this comment.
Just tried it -- it works on OS X, so you're good.
There was a problem hiding this comment.
Oops I spoke too soon, I think we need to follow something like:
https://stackoverflow.com/questions/5694228/sed-in-place-flag-that-works-both-on-mac-bsd-and-linux
to support in-place editing that works on both linux and mac
Codecov Report
@@ Coverage Diff @@
## master #674 +/- ##
=======================================
Coverage 28.31% 28.31%
=======================================
Files 43 43
Lines 6630 6630
=======================================
Hits 1877 1877
Misses 4471 4471
Partials 282 282Continue to review full report at Codecov.
|
This way, CRD and app deployments can be separated, e.g. if someone wishes to install Argo CD multiple times. Also: Make update-manifests.sh fail-fast and more resilient against spaces in paths and user's CDPATH settings.
0de75f4 to
eb5fb50
Compare
hack/update-manifests.sh
Outdated
There was a problem hiding this comment.
Just tried it -- it works on OS X, so you're good.
…om revive (argoproj#674) Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This way, CRD and app deployments can be separated, e.g. if someone wishes to install Argo CD multiple times.
Also: Make update-manifests.sh fail-fast and more resilient against spaces in paths and user's CDPATH settings.