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

Refactor common spec elements into a single struct with common proces… #105

Merged
merged 4 commits into from
Nov 9, 2018
Merged

Conversation

objectiser
Copy link
Contributor

…sing (merging)

Decided it was better to factor out the common spec elements at the top level and in the components, as there will be others coming soon (e.g. resources).

Signed-off-by: Gary Brown gary@brownuk.com

…sing (merging)

Signed-off-by: Gary Brown <gary@brownuk.com>
@jpkrohling
Copy link
Contributor

This change is Reviewable

Signed-off-by: Gary Brown <gary@brownuk.com>
@codecov
Copy link

codecov bot commented Nov 9, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   99.42%   99.43%   +<.01%     
==========================================
  Files          21       21              
  Lines         869      879      +10     
==========================================
+ Hits          864      874      +10     
  Misses          5        5
Impacted Files Coverage Δ
pkg/deployment/query.go 100% <100%> (ø) ⬆️
pkg/deployment/all-in-one.go 100% <100%> (ø) ⬆️
pkg/deployment/collector.go 100% <100%> (ø) ⬆️
pkg/util/util.go 100% <100%> (ø) ⬆️
pkg/deployment/agent.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 12edd3a...5191633. Read the comment docs.

Signed-off-by: Gary Brown <gary@brownuk.com>
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 7 of 7 files at r1, 1 of 1 files at r2, 1 of 1 files at r3.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @objectiser)

a discussion (no related file):
I'm not a big fan of the name JaegerCommonSpec, but I can't think of a better one :-)

:lgtm:



pkg/util/util.go, line 54 at r2 (raw file):

			}
		}
		for _, volumeMount := range commonSpec.VolumeMounts {

nit: I think you can do something like:

volumeMounts = append(volumeMounts, commonSpec.VolumeMounts...)

Signed-off-by: Gary Brown <gary@brownuk.com>
Copy link
Contributor Author

@objectiser objectiser left a comment

Choose a reason for hiding this comment

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

Reviewable status: 7 of 8 files reviewed, 2 unresolved discussions (waiting on @jpkrohling and @objectiser)


pkg/util/util.go, line 54 at r2 (raw file):

Previously, jpkrohling (Juraci Paixão Kröhling) wrote…

nit: I think you can do something like:

volumeMounts = append(volumeMounts, commonSpec.VolumeMounts...)

Good point - changed.

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 1 of 1 files at r4.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @objectiser)

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.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@jpkrohling jpkrohling merged commit 06ceca0 into jaegertracing:master Nov 9, 2018
@objectiser objectiser deleted the commontype branch January 29, 2019 12:38
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