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

{{ .OldTag }} does not match actual old tag being replaced #696

Open
hawkesn opened this issue Mar 27, 2024 · 0 comments
Open

{{ .OldTag }} does not match actual old tag being replaced #696

hawkesn opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hawkesn
Copy link
Contributor

hawkesn commented Mar 27, 2024

Describe the bug
Our current git.commit-message-template looks like this (note we're using the helm chart):

      gitCommitTemplate: |
        {{ range .AppChanges -}}
          Updating {{ .Image }} tag from {{ .OldTag }} to {{ .NewTag }}
        {{ end -}}

And we have been getting commit messages that look like this:
Updating <image> tag from 03472e543ed091a5ee315dc0986b19257a2ff49b to fb27c8a3eed5024118f340669d9f481860bc4a15

However, the {{ .OldTag }} appears to be loading an older value in several commits:
image

image

To Reproduce
Steps to reproduce the behavior:

  • Use the same git commit template
  • Do back to back commits

Expected behavior

  • The {{ .OldTag }} should represent the actual old tag in the message.

Additional context

  • These commits were done about half an hour apart
  • I am running 3 pods of argocd-image-updater for HA reasons

Version
0.9.5

@hawkesn hawkesn added the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant