-
Notifications
You must be signed in to change notification settings - Fork 348
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
Add support for securityContext and serviceAccount #456
Conversation
Signed-off-by: mwieczorek <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #456 +/- ##
==========================================
+ Coverage 91.59% 91.66% +0.06%
==========================================
Files 64 64
Lines 3142 3167 +25
==========================================
+ Hits 2878 2903 +25
Misses 184 184
Partials 80 80
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #456 +/- ##
==========================================
+ Coverage 91.59% 91.67% +0.07%
==========================================
Files 64 64
Lines 3142 3170 +28
==========================================
+ Hits 2878 2906 +28
Misses 184 184
Partials 80 80
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from a couple of nits. What's really missing is documenting this. Could you please either change the readme to document how to specify/override the sec context and per-component service account (preferred), or open a new issue for the documentation task?
Signed-off-by: mwieczorek <[email protected]>
Signed-off-by: mwieczorek <[email protected]>
Added 2 new configuration options to readme file. Also one question: |
This is not by design, I see no problems in adding the configuration option for it as well. |
pkg/util/util.go
Outdated
// Component represents type of jaeger component | ||
type Component string | ||
|
||
const ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure util
is the right place for this. We have some constants already in the main v1
package (github.com/jaegertracing/jaeger-operator/pkg/apis/jaegertracing/v1), but that might also not be suitable.
As all usages of this new constant are inside the deployment
package, I'd keep it private there in a file named const.go
. We can move it later if we need it somewhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also use it in account
package, so if I put it in deployment
package I cannot use it in account
(cyclic import).
Put it in account
package? (there's JaegerServiceAccountFor
func where it's used)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, placing it close to the JaegerServiceAccountFor
sounds logical to me.
By the way, Travis fails here:
|
With default value |
I would vote for |
Signed-off-by: mwieczorek <[email protected]>
Signed-off-by: mwieczorek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution!
Signed-off-by: mwieczorek [email protected]
fix: #421