Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go template variable branch not worked in git directory generator #21430

Open
3 tasks done
HeeSeoung opened this issue Jan 9, 2025 · 0 comments
Open
3 tasks done

Go template variable branch not worked in git directory generator #21430

HeeSeoung opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working component:application-sets Bulk application management related version:2.13 Latest confirmed affected version is 2.13

Comments

@HeeSeoung
Copy link

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

  • While following the example for the git generator, cluster parameter is interpolated from the variable {{branch}}-{{path}}.
  • It appears that the branch name of the current git repository is recognized, making it possible to deploy the application based on that branch.
  • However, when actually configuring and deploying the applicationset with this setup, the {{path}} value is recognized correctly, but {{branch}} does not work as expected.

To Reproduce

  • Deploy argocd v2.13 on k8s cluster
  • Create git repository for applicationset
  • Follow git generator and check the deployed application.

Expected behavior

  • applicationset should recognize go template variable {{branch}}

Screenshots

image

Version

  • argocd version: v2.13.2

Logs

Paste any relevant application logs here.
@HeeSeoung HeeSeoung added the bug Something isn't working label Jan 9, 2025
@rumstead rumstead added component:application-sets Bulk application management related version:2.13 Latest confirmed affected version is 2.13 labels Jan 9, 2025
@HeeSeoung HeeSeoung changed the title Go template variable 'branch' not worked in git directory generator Go template variable branch not worked in git directory generator Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:application-sets Bulk application management related version:2.13 Latest confirmed affected version is 2.13
Projects
None yet
Development

No branches or pull requests

2 participants