-
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
Update Operator SDK to 0.8.1 #449
Update Operator SDK to 0.8.1 #449
Conversation
Tests are passing. I got some failures with the streaming tests at first, but manually removing the Kafka
|
0a920c6
to
359e0a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #449 +/- ##
======================================
Coverage 91.6% 91.6%
======================================
Files 64 64
Lines 3144 3144
======================================
Hits 2880 2880
Misses 184 184
Partials 80 80 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #449 +/- ##
=======================================
Coverage 91.59% 91.59%
=======================================
Files 64 64
Lines 3142 3142
=======================================
Hits 2878 2878
Misses 184 184
Partials 80 80 Continue to review full report at Codecov.
|
@@ -2,6 +2,8 @@ | |||
build/_output | |||
build/_test | |||
deploy/test | |||
vendor |
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.
Why no longer persist the vendor folder?
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.
Following discussion, agree better to align with recommended approach for modules.
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.
My understanding is that Go Modules supports vendor
for backwards compatibility but is quite opinionated in this area. Modules do not reside under vendor
: rather, a go.mod
and go.sum
record the dependencies and their checksums, so that reproducible builds should be possible even without a vendor
directory.
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
95bf31d
to
2f67fd4
Compare
This PR is divided in two commits: the first is to move from
dep
togo modules
, as that's the new default for the Operator SDK. Note that it requires Go 1.11 withGO111MODULE=on
or Go 1.12, where modules is activated by default. For my local development environment, I opted for using Go 1.12.The second commit is to implement changes that I see when a new operator is generator, including the new
tools.go
at the root of the project and a newDockerfile
with a couple of scripts.