-
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
Migrate to Operator SDK 0.1.0 #116
Migrate to Operator SDK 0.1.0 #116
Conversation
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #116 +/- ##
==========================================
- Coverage 99.5% 92.35% -7.16%
==========================================
Files 24 25 +1
Lines 1002 1072 +70
==========================================
- Hits 997 990 -7
- Misses 5 82 +77
Continue to review full report at Codecov.
|
Review notes:
|
Still to figure out:
|
@jpkrohling Do the When running
When running
|
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
I don't see this, and I'm not sure what might be wrong there. The go fmt $(go list ./cmd/... ./pkg/...) About the other problem:
Which version of the
|
Still had old operator - once updated:
Running the |
About this one, this is probably because you don't have Minikube running.
This is intriguing. Are you able to add some debugging to the Makefile, |
Sorry not on the ball today - once I started minikube, I get the same error as you (I guess):
On the other thing - strange, if I run |
@jpkrohling It looks like the fatal message is from |
@@ -0,0 +1,10 @@ | |||
package controller |
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.
Is it a convention in the operator to name the files add_...
? Can't they just be deployment.go
and jaeger.go
?
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.
That's boilerplate code generated by the new operator SDK
} | ||
|
||
func (r *ReconcileJaeger) handleDependencies(ctrl Controller) error { | ||
for _, dep := range ctrl.Dependencies() { |
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.
Can the dependencies be launched concurrently - rather than waiting on each one in turn?
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.
Yes, I believe so. Would you open an issue for that? This is an existing code that just got moved here.
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.
Done #117
That's interesting. What I get is this:
(which means that I'm at 4722d4f, 3 commits ahead of the v1.8.0 tag) |
You did not see this error with the previous version, right? |
No I didn't see that error before. |
test/e2e/jaeger_test.go
Outdated
if err != nil { | ||
t.Fatalf("failed to add custom resource scheme to framework: %v", err) | ||
} | ||
|
||
t.Run("jaeger-group", func(t *testing.T) { | ||
t.Run("my-jaeger", JaegerAllInOne) | ||
t.Run("my-other-jaeger", JaegerAllInOne) | ||
// t.Run("my-jaeger", JaegerAllInOne) |
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.
Don't forget to uncomment these :)
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
@jpkrohling Just went back to the current master and tried running the test, and now seeing it. So not sure when that started failing. |
I'm almost sure I ran the tests before I started working on this task. I'll try to get it fixed today. |
I'll open an issue and handle this test failure in a different PR. |
Signed-off-by: Juraci Paixão Kröhling [email protected]