argo-cd
argo-cd copied to clipboard
feat: Go template with sprig for application template render in applicationset
Signed-off-by: rishabh625 [email protected]
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
- [ ] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
- [ ] The title of the PR states what changed and the related issues number (used for the release note).
- [ ] I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
- [ ] I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
- [ ] Does this PR require documentation updates?
- [ ] I've updated documentation as required by this PR.
- [ ] Optional. My organization is added to USERS.md.
- [ ] I have signed off all my commits as required by DCO
- [ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
- [ ] My build is green (troubleshooting builds).
This is the PR moved from argoproj/applicationset
https://github.com/argoproj/applicationset/pull/513
Thanks to @vavdoshka for all the efforts and @crenshaw-dev for pushing it this close
Codecov Report
Merging #9873 (fd18257) into master (c1d8173) will decrease coverage by
0.17%
. The diff coverage is7.77%
.
@@ Coverage Diff @@
## master #9873 +/- ##
==========================================
- Coverage 45.86% 45.69% -0.18%
==========================================
Files 227 228 +1
Lines 26864 26932 +68
==========================================
- Hits 12322 12307 -15
- Misses 12862 12949 +87
+ Partials 1680 1676 -4
Impacted Files | Coverage Δ | |
---|---|---|
applicationset/utils/templating.go | 0.00% <0.00%> (ø) |
|
applicationset/utils/utils.go | 71.01% <ø> (-7.40%) |
:arrow_down: |
...is/applicationset/v1alpha1/applicationset_types.go | 39.13% <ø> (-1.78%) |
:arrow_down: |
...cationset/controllers/applicationset_controller.go | 56.26% <42.85%> (-0.50%) |
:arrow_down: |
...licationset/generators/generator_spec_processor.go | 51.56% <66.66%> (-0.11%) |
:arrow_down: |
util/settings/settings.go | 48.39% <0.00%> (+0.22%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c1d8173...fd18257. Read the comment docs.
@iamnoah Is this PR still worked on ?
@crenshaw-dev I would be happy to try to push something but it might be sloppy attempt. As I have a limited experience with Golang.
Would that be good for you ?
@mrmm I'd be happy to review and help with any local dev setup issues! :-)
Closing for now, until someone has time to pick it back up. :-)
Hello @crenshaw-dev, I hope you are doing great!
~I've started working on this (in my fork) but I am struggling with how to test this following the same way in (applicationset/utils/utils_test.go), and the commit of the tests is something like https://github.com/mrmm/argo-cd/commit/c32946932b64a1f8b47c2bfb16712552c226da68.~
~Do you have any recommendations to do this better please?~
Edit: @crenshaw-dev you can ignore my previous request, as the work on this has restarted in https://github.com/argoproj/argo-cd/pull/11183