-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error: cannot use resyncPeriod (type int) as type time.Duration in argument to sdk.Watch #453
Comments
@jianzhangbjz we decided to use
|
@jianzhangbjz That was breaking change made recently. git checkout master
make install And for an existing operator project you can update the [[constraint]]
name = "github.com/operator-framework/operator-sdk"
# The version rule is used for a specific release and the master branch for in between releases.
branch = "master"
# version = "=v0.0.5" And then run We're planning to do a release at the end of this week to not force users to use the master branch. At that point you can use the latest tag. |
@fanminshi @hasbro17 Thanks a lot! It works now!
I think we should fix the version issue, what do you think? |
@jianzhangbjz v0.0.6 has been released. You can set your projects' Gopkg.toml files to use that version instead of the master branch. |
I created a Operator named
jian-operator
via theOperator-SDK
, seems it works well. But, I got below errors when I building its image:Below is the main.go file, seems like need to add a conversion between the
type int
and thetype time
.It's strange that it works before, you can see other operators I created before, but why failed now?
[root@localhost example-inc]# ls app-operator jian-operator memcached-operator
I also checked the the template for cmd/main.go , seems this issue has been fixed. We can see the
time
package now. So, do I need to update myoperator-sdk
tool? If yes, how to update it?[root@localhost example-inc]# operator-sdk --version operator-sdk version 0.0.5+git
The text was updated successfully, but these errors were encountered: