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

Added an option to do odigos version --cli/--cluster to print only th… #1298

Merged
merged 7 commits into from
Jun 27, 2024

Conversation

yodigos
Copy link
Contributor

@yodigos yodigos commented Jun 26, 2024

…e version.

Removed the need of adding the TAG in the building commands.

Makefile Outdated
ORG := keyval

# Cluster Version
TAG := $(shell kubectl get configmap $(CONFIGMAP_NAME) -n $(NAMESPACE) -o jsonpath='{.data.ODIGOS_VERSION}')
Copy link
Contributor

Choose a reason for hiding this comment

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

Also possible is TAG ?= $(shell odigos version --short)

Eden has a similar change in the Makefile at: https://github.com/odigos-io/odigos/pull/1250/files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right!
In this PR I also added a flag for cli version and cluster version.
So, I'll use it :)

…e version.

Removed the need of adding the TAG in the building commands.

Added an option not to use TAG in the locally deploy
CONTRIBUTING.md Outdated Show resolved Hide resolved
cli/cmd/version.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
fmt.Printf("%s\n", OdigosVersion)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@blumamir I changed it so you can do multiple arguments (cli + cluster).. I'm not sure there is or will be a use case for it. But, usually CLIs allow multiple arguments. So even in the future if we will want to add

Makefile Outdated Show resolved Hide resolved
Co-authored-by: Ron Federman <[email protected]>
@blumamir blumamir merged commit 919bb6a into odigos-io:main Jun 27, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants