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

Use "latest" as the image version when none is set #37

Closed
wants to merge 1 commit into from

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Sep 20, 2018

The version can be empty when developing with "go run main.go" so to
avoid having Kubernetes fail to deploy Jaeger because the image is
incorrect, we use "latest" as the default

Signed-off-by: Georgios Andrianakis geoand@gmail.com

The version can be empty when developing with "go run main.go" so to
avoid having Kubernetes fail to deploy Jaeger because the image is
incorrect, we use "latest" as the default

Signed-off-by: Georgios Andrianakis <geoand@gmail.com>
@jpkrohling
Copy link
Contributor

This change is Reviewable

@codecov
Copy link

codecov bot commented Sep 20, 2018

Codecov Report

Merging #37 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   99.16%   99.16%   +<.01%     
==========================================
  Files          16       16              
  Lines         599      602       +3     
==========================================
+ Hits          594      597       +3     
  Misses          5        5
Impacted Files Coverage Δ
pkg/deployment/all-in-one.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd0cd3b...ae0cdea. Read the comment docs.

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @geoand)


pkg/deployment/all-in-one.go, line 30 at r1 (raw file):

		if len(imageVersion) == 0 {
			// default to latest when no version has been set
			imageVersion = "latest"

I like the main idea, but we should default to whatever is specified in the jaeger.version file, at the root of the repository. As the main use case is when running the operator with go run, I think we could then try to load this file and use it?

But, I think a better solution to this specific problem is to add -ldflags to the make run target and instruct people to not use go run directly (which is reasonable, I think).

@jpkrohling jpkrohling mentioned this pull request Sep 21, 2018
@geoand
Copy link
Contributor Author

geoand commented Sep 21, 2018

I am pretty new to go so yeah, I'm sure mine isn't the best possible solution. I will checkout the ldflags you mention and see what I can come up with

@geoand
Copy link
Contributor Author

geoand commented Sep 21, 2018

I agree that we should add the ldflags in #35. I then close this PR ok?

@jpkrohling
Copy link
Contributor

Yes, please!

@geoand
Copy link
Contributor Author

geoand commented Sep 21, 2018

Closing in favor of #35

@geoand geoand closed this Sep 21, 2018
@geoand geoand deleted the image-fix branch September 21, 2018 10:31
dt-cloner bot pushed a commit to IshwarKanse/jaeger-operator that referenced this pull request Aug 29, 2024
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.

2 participants