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

feat(ansible): add branch reference as variable in gitrepository #919

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

oscaromeu
Copy link
Contributor

@oscaromeu oscaromeu commented Aug 27, 2023

The Flux GitRepository kind allows for configuring the branch reference. Currently, the value is fixed at 'main' in the 'flux-cluster-template' project. This pull request allows configuring the desired branch to be used in the GitRepository manifest.

The code has been tested with different values for the variable bootstrap_github_repository_branch and the results were correct. Let me know if you need this results.

@github-actions github-actions bot added area/kubernetes Changes made in the kubernetes directory area/bootstrap labels Aug 27, 2023
@onedr0p
Copy link
Owner

onedr0p commented Aug 27, 2023

I like this, however it should be defaulted to the main branch if not set.

@oscaromeu oscaromeu force-pushed the feat/add-branch-variable branch from 044cde3 to a18dc4a Compare August 27, 2023 15:11
@oscaromeu
Copy link
Contributor Author

oscaromeu commented Aug 27, 2023

Hi @onedr0p, I updated the PR with your suggestion, let me know if is there anything more. Thank you!!

@onedr0p onedr0p merged commit 7874618 into onedr0p:main Aug 27, 2023
@onedr0p
Copy link
Owner

onedr0p commented Aug 27, 2023

Thanks for the feature add! 🙂

@oscaromeu
Copy link
Contributor Author

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes Changes made in the kubernetes directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants