Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Incorrect vendored version of jsoniter #16

Closed

Description

@wfernandes

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.

Activity

  1. nikhita commented on Jun 26, 2018

    @nikhita

    @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. 🤔

  2. nikhita commented on Jun 26, 2018

    @nikhita

    @wfernandes can you try make dep before the operator-sdk commands?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions