Best way to stay up-to-date with the template #838
Replies: 4 comments 12 replies
-
It's not a easy thing but you can add this repo as a remote and then use git cherry-pick to bring in changes. Also if you wanted to be part of the discussion on the direction this is going we have |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi 🙂 update-from-remote:
desc: Update from remote template repository
cmds:
- git remote get-url template >/dev/null 2>&1 || git remote add template [email protected]:onedr0p/flux-cluster-template
- git fetch --all
- git cherry-pick --no-commit --allow-empty $(cat latest-template.sha)..template/main
- git ls-remote template HEAD | awk '{ print $1}' > latest-template.sha update via: task update-from-remote Before you run this task for the first time, ensure that there's a After successful cherry-picking, the task will update the |
Beta Was this translation helpful? Give feedback.
-
Since the "Use this template" doesn't keep history and authors, I'm using the following solution which just takes changes and applies them (in a single commit) to my repo:
This usually creates a lot of merge conflicts, but since they all are in files not "managed" by me, I just accept all incoming changes, stage and commit them in my own commit. If no conflicts are found, git stops and asks you to finish the merge. I'm not sure how to apply incoming changes to my cluster though. For example, in PR #1110 some renames are introduced in Jinja templates. To my understanding I need to rerun |
Beta Was this translation helpful? Give feedback.
-
Hey,
Thanks again for this amazing project! I see you’re making lots of great improvements to the template and I wonder what the best way is of rebasing your changes. I copied the template as suggested in your guide, but it seems that I should have just forked the project so that I can easily rebase. It would also be easier to propose new changes with a PR.
What do you think? Am I missing anything?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions