flatcar-linux-update-operator
flatcar-linux-update-operator copied to clipboard
Consider getting rid of version constraints from code
We have #12 right now, where we have operator and agent version baked into binaries, but we don't really use it for anything except printing version right now, as it was mainly used for managing the DaemonSet, which was deprecated and has been removed in 085c8588fa1a8233add27f17d5c6180f2b551c2b.
Things to consider:
- Decide if
versionpackage should be exported. - Consider moving
versioncode tocmdpackage. - Consider logging operator and agent version from operator code, rather than from CLI.
- Set version constant to
v0.8.1-dirty(basically to<likely next version>-next) to have at least some information forgo buildbuilds. This will be bumped and changed as part of the release process. This is what Lokomotive and Flexkube are doing and we didn't experience any major issues with it. - If available, use
debug.ReadBuildInfo()for versioning forgo getbuilds. - Keep setting version with
makefor detailed information.