You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor CurrentVersion to use the git version string (#217)
* Previously the git version string was plumbed to cmd.Version via the linker and i2gw had a hardcoded version
* Now the linker propogates the version string to i2gw and the cmd package imports it from there
* This has a few effects:
1. You no longer need to manually update i2gw.CurrentVersion whenever there is a release. Simply tagging the release will work.
2. The generator annotations (gateway.networking.k8s.io/generator) will now use the git version string instead instead of just the hardcoded value. This means that during local development you will see something like "ingress2gateway-v0.4.0-5-gabcdef-dirty" in your generated annotations, letting you know exactly what local commit you were using when you generated that Gateway.
0 commit comments