-
Notifications
You must be signed in to change notification settings - Fork 344
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
Ensure oauth-proxy ImageStream is detected eventually #2340
Ensure oauth-proxy ImageStream is detected eventually #2340
Conversation
* move the detectOAuthProxyImageStream function out of `autoDetectCapabilities`'s `firstRun.Do` block * introduce a check to prevent needless api calls if `openshift-oauth-proxy-image` is already digest-based (assuming detection has occured) Signed-off-by: Bram Verschueren <[email protected]>
Hi @bverschueren. Thanks for your PR. I'm waiting for a jaegertracing member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -222,7 +222,7 @@ func (b *Background) detectOAuthProxyImageStream(ctx context.Context) { | |||
ctx, span := tracer.Start(ctx, "detectOAuthProxyImageStream") | |||
defer span.End() | |||
|
|||
if OperatorConfiguration.GetPlatform() == OpenShiftPlatform { | |||
if OperatorConfiguration.GetPlatform() != OpenShiftPlatform { |
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 catch!
pkg/autodetect/main.go
Outdated
@@ -240,13 +240,27 @@ func (b *Background) detectOAuthProxyImageStream(ctx context.Context) { | |||
return | |||
} | |||
|
|||
// if the image is already digest-based no need to get the reference from an ImageStream | |||
currImage := viper.GetString("openshift-oauth-proxy-image") |
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.
Nice change!
Signed-off-by: Bram Verschueren <[email protected]>
/retest |
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
/test jaeger-e2e-tests |
/retest |
Which problem is this PR solving?
Description of the changes
autoDetectCapabilities
'sfirstRun.Do
blockopenshift-oauth-proxy-image
is already digest-based (assuming detection has occurred)How was this change tested?
openshift-oauth-proxy-image
is updated after initial run failsChecklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test