-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add shortName to gitrepositories #334
Conversation
Our CRDs are dynamically generated and do not allow direct modifications, instead, metadata should be added to the API code as done here: https://github.com/fluxcd/kustomize-controller/blob/2f2812636448cd27ddc5b4a8af1a333cbebf89ce/api/v1beta1/kustomization_types.go#L327 After making this modification, you can run |
Ah gotcha, that makes sense, thank you 👍
I will give this a shot 💯 |
4a60dc6
to
9ec8412
Compare
Small correction, the right |
Thank you, that seemed to have done the magic 🎆 🧙♂️ @hiddeco Just for my own curiosity, adding metadata as comment to the API code and running the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rebase instead of merging changes in, and smash your commits (as it is a small change)?
6fbf6a6
to
42941c1
Compare
@hiddeco Done 👍 |
@hiddeco Can you please let me know if you would like me to do anything additional or are we good to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks OK, it just needs a rebase. Thanks @abhinav454 🌻
Signed-off-by: abhinav454 <43758739+abhinav454@users.noreply.github.com>
Done, thank you so much for your help with this @hiddeco 💯 😄 |
Adding
gr
as a shortName, similar to how kustomizations hasks
:https://github.com/fluxcd/kustomize-controller/blob/2f2812636448cd27ddc5b4a8af1a333cbebf89ce/config/crd/bases/kustomize.toolkit.fluxcd.io_kustomizations.yaml#L17
Not sure if this is the only change required for this, but would love to know if I am missing something.