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

Copy common spec to avoid touching persisted CR spec #1333

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

rubenvp8510
Copy link
Collaborator

Signed-off-by: Ruben Vargas Palma ruben.vp8510@gmail.com

@codecov
Copy link

codecov bot commented Dec 8, 2020

Codecov Report

Merging #1333 (8b76555) into master (3160523) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1333      +/-   ##
==========================================
+ Coverage   87.41%   87.43%   +0.01%     
==========================================
  Files          89       89              
  Lines        5021     5020       -1     
==========================================
  Hits         4389     4389              
+ Misses        467      466       -1     
  Partials      165      165              
Impacted Files Coverage Δ
pkg/inject/sidecar.go 94.76% <100.00%> (ø)
pkg/apis/jaegertracing/v1/logger.go 0.00% <0.00%> (ø)

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 3160523...8b76555. Read the comment docs.

@objectiser
Copy link
Contributor

@rubenvp8510 could you add a test to confirm that the supplied Jaeger CR is not modified - and that the returned container has the volume/mounts?

@objectiser
Copy link
Contributor

@rubenvp8510 Could you add

	assert.Len(t, jaeger.Spec.Agent.VolumeMounts, 0)
	assert.Len(t, jaeger.Spec.Agent.Volumes, 0)

to https://github.com/jaegertracing/jaeger-operator/blob/master/pkg/inject/sidecar_test.go#L52 and again at the end of the test - i.e. to check there are no volumes/mounts in the initial Jaeger CR and after the sidecar has been injected.

Then I think it is ready to merge.

Signed-off-by: Ruben Vargas Palma <ruben.vp8510@gmail.com>
@rubenvp8510 rubenvp8510 marked this pull request as ready for review December 9, 2020 12:32
@mergify mergify bot merged commit 55cb24a into jaegertracing:master Dec 9, 2020
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