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

Handle non-default branches for metadata repository #64

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

emalm
Copy link
Contributor

@emalm emalm commented May 24, 2022

This change updates the metadata class to check out the branch configured for the metadata repository when it clones the repository initially, and then to conduct only fast-forward pulls from that branch on updates.

Previously, the clone operation would check out the default branch for the metadata repository (typically "main" or "master"). When it then pulls updates on the configured branch, if that branch has diverged from the main branch, then the pull command attempts to make a merge commit. In a containerized runtime environment, the Git user data is not configured, so this commit attempt fails.

This change updates the metadata class to check out the branch configured for the metadata
repository when it clones the repository initially, and then to conduct only fast-forward pulls
from that branch on updates.

Previously, the clone operation would check out the default branch for the metadata repository
(typically "main" or "master"). When it then pulls updates on the configured branch, if that branch
has diverged from the main branch, then the pull command attempts to make a merge commit. In a
containerized runtime environment, the Git user data is not configured, so this commit attempt
fails.
@emalm
Copy link
Contributor Author

emalm commented Jun 17, 2022

@jberkus are you the right person to request a PR review from? Thanks!

@jberkus
Copy link
Member

jberkus commented Jun 17, 2022

Apologies, this came in during Kubecon and I missed it. Reviewing now.

@jberkus
Copy link
Member

jberkus commented Jun 18, 2022

LGTM

@jberkus jberkus merged commit 7c73d4b into elekto-io:main Jun 18, 2022
@emalm emalm deleted the non-default-meta-branch branch May 12, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants