You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
Upon following the instructions to build the docker image for the memcached-operator I get the following error.
$ operator-sdk build quay.io/example/memcached-operator:v0.0.1
Error: failed to build: (building memcached-operator...
# github.com/example-inc/memcached-operator/vendor/k8s.io/apimachinery/pkg/runtime/serializer/json
vendor/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go:104:16: unknown field 'CaseSensitive'in struct literal of type jsoniter.Config
# github.com/example-inc/memcached-operator/vendor/k8s.io/client-go/util/workqueue
vendor/k8s.io/client-go/util/workqueue/delaying_queue.go:48:25: clock.Tick undefined (type clock.Clock has no field or method Tick)
)
After taking a look at the Gopkg.lock, it contains an older version of json-iterator.
[[projects]]
name = "github.com/json-iterator/go"
packages = ["."]
revision = "ca39e5af3ece67bbcda3d0f4f56a8e24d9f2dad4"
version = "1.1.3"
Unfortunately, version 1.1.3 doesn't have the case sensitive stuff. I suggest upgrading it to the latest version which currently contains some fixes for case sensitivity.
@wfernandes It is correct that the currently tagged version of json-iter does not contain the case sensitive fix but the version of client-go that's been pinned does not have the case sensitive fix as well:
Activity
nikhita commentedon Jun 26, 2018
@wfernandes It is correct that the currently tagged version of json-iter does not contain the case sensitive fix but the version of client-go that's been pinned does not have the case sensitive fix as well:
https://github.com/operator-framework/operator-sdk/blob/280ebfaef7d43ff6712fe7358480c69e750a29cc/Gopkg.lock#L401-L402
Also, the fix has still not been cherry-picked to a 1.9 patch release: kubernetes/kubernetes#65298.
I tried the example operator https://github.com/operator-framework/operator-sdk#quick-start and it worked for me. 🤔
nikhita commentedon Jun 26, 2018
@wfernandes can you try
make depbefore the operator-sdk commands?