-
Notifications
You must be signed in to change notification settings - Fork 188
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
Support reference name in GitRepositoryRef #1017
Comments
Apply the GitRepository with Flux and the branch will be gone, unlike kubectl, kustomize-controller knows how to remove fields deleted from Git. |
but no cli is involved in our case for hundreds of bubernetes clusters - and we looking for a flow with Helm,Kubectl or Crossplane for example- what is against a type field ? |
Breaking everyone's clusters by changing a core API that we promised users we'll not do. |
we can add this fields in parallel and make the flow much more easier for kubernetes tooling |
The enum doesn't cover the use-case where you want to pic a specific commit from a branch, you can do that with the current API by specifying both the |
I think this could also be solved by adding another field which takes precedence over all existing fields which would allow the definition of a plain Git Reference. This would prevent having to define behavior describing enums which would cause problems as laid out by Stefan, while allowing ambiguous control over fetching branches, tags, or even pull request references (as has been reported as a use case elsewhere). Internally, this would likely just result in the controller resolving the reference to a specific commit, which would then be fetched. |
+1 something like |
sounds good i will have a look to open a PR |
Signed-off-by: Christopher Paul Haar <christopherpaul.haar@dkb.de>
@stefanprodan @hiddeco we added an draft PR: #1022 any chance to get a review before we finish this implementation and adding tests ? thats would be very helpful! thanks for your time |
hey @haarchri, its not very straightforward to fix this as it requires more changes in different areas. i'm happy to pick it up and take it off your hands. |
we want to discuss first change in the GitRepository the
GitRepositoryRef
today we have the following types: branch, tag, semver and commit https://github.com/fluxcd/source-controller/blob/main/api/v1beta2/gitrepository_types.go#L157 for us using flux in combination with crossplane its very hard to use it this way
implementation today:
we have crossplane compositions running to input branch or tag but this lead to the following problem:
1.) specifiy branch: (feature development)
2.) specify tag: (feature development finished and release by tag):
3.) specify new branch for new feature
its not possible to switch to Branch anymore - you need to delete the
Tag
first - and normally a kubectl merge is running - so you need to adjust the manifest by hand - wich is not allowed in our companyImplementation in future:
any chance to discuss this kind of change before bumping to GA v1 ? #947
The text was updated successfully, but these errors were encountered: