-
Notifications
You must be signed in to change notification settings - Fork 352
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
fetch tags to local, if different to remote #1371
base: main
Are you sure you want to change the base?
Conversation
This PR has been marked stale because it has had no activity for 60 days. If you are still interested in getting this merged, please comment and we'll try to move it forward. Otherwise, it will be closed in 7 days. |
Is there anything, I can do, to bring this forward? |
Sorry, I missed this. The change looks good, but let me double check the |
This PR has been marked stale because it has had no activity for 60 days. If you are still interested in getting this merged, please comment and we'll try to move it forward. Otherwise, it will be closed in 7 days. |
I'm still interested to get this merged. Just commenting, to remove the stale label. |
This PR has been marked stale because it has had no activity for 60 days. If you are still interested in getting this merged, please comment and we'll try to move it forward. Otherwise, it will be closed in 7 days. |
Still interested. |
This PR has been marked stale because it has had no activity for 60 days. If you are still interested in getting this merged, please comment and we'll try to move it forward. Otherwise, it will be closed in 7 days. |
And again: Still interested |
@tmu-sprd I'm not sure if I understand your usecase. Does that mean that you delete and recreate tags, that then point to a different commit? |
(I am not employed by Perforce, but I've some thoughts) I'm totally fine with adding the prune option. And that should probably be it's own PR, because it's a bugfix. I'm not sure about updating the tags / comparing them. For years, we taught people to rely on git tags or commits in their Puppetfile when they want to speed up deployments. The assumption was that those are immutable. Because of that, r10k has the |
Thanks for replying and I'll try to describe the use case. Our Delivery Engineering team use git tags to deploy applications via Puppet. In the source repository there is Puppet code to deploy the applications to Kubernetes, QA, VMs etc. When a new version of an application is ready for deployment a SemVer version tag is added to the feature branch and then this is merged to the main branch. The main branch is referenced in the Puppetfile. By this, it's not needed to change any Puppet code, YAML or Puppetfile to deploy a new version of an app. Just add the new version tag and the app is deployed. For this to work, it's needed, that the tags are synchronized at the Puppet server. Hence this PR. I hope, this makes sense. |
We have the use case, that r10k is pulling modules from our own Git and some modules are applied via
puppet apply
based on a tag in the Git repository. Therefore it's needed, that the git tags are also updated in the deployed modules by r10k.This PR adds updating the tags, when they differ local and remote.
This is running currently in our production and is working fine.