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

Replace version/version.go with internal/version/version.go #91

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

antoninbas
Copy link
Member

On case-insensitive filesystems (which includes default macOS installations), it is not possible to have a "version" directory and a "VERSION" file in the same parent directory, and the repo cannot be cloned succesfully. To resolve this, we replace version/version.go with internal/version/version.go.

Additionally, we stop using "0.0.1" as the version string, as it is not consistent with the contents of the VERSION file, nor with the Docker tag. Instead, we use the VERSION file as the one source of truth. We also add a "--version" command-line flag to the operator binary, which displays the version and exits.

On case-insensitive filesystems (which includes default macOS
installations), it is not possible to have a "version" directory and a
"VERSION" file in the same parent directory, and the repo cannot be
cloned succesfully. To resolve this, we replace version/version.go with
internal/version/version.go.

Additionally, we stop using "0.0.1" as the version string, as it is not
consistent with the contents of the VERSION file, nor with the Docker
tag. Instead, we use the VERSION file as the one source of truth. We
also add a "--version" command-line flag to the operator binary, which
displays the version and exits.

Signed-off-by: Antonin Bas <abas@vmware.com>
@antoninbas
Copy link
Member Author

@ksamoray not sure what to do with https://github.com/vmware/antrea-operator-for-kubernetes/tree/main/olm-catalog
It has multiple references to version 0.0.1, is this folder actually used for anything (it has not been updated in 3 years)?

@ksamoray
Copy link
Contributor

ksamoray commented Dec 5, 2023

@ksamoray not sure what to do with https://github.com/vmware/antrea-operator-for-kubernetes/tree/main/olm-catalog It has multiple references to version 0.0.1, is this folder actually used for anything (it has not been updated in 3 years)?

It's an old leftover which isn't in use.I'll delete it.

Copy link
Contributor

@ksamoray ksamoray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ksamoray ksamoray merged commit 965fe5a into vmware:main Dec 5, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants