Skip to content

cilium get endpoint fails with "Failed to decode nested JSON" #29247

@dctrwatson

Description

@dctrwatson

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Running cilium get endpoint <id> results in:

Error: Failed to decode nested JSON: invalid character 'M' looking for beginning of object key string (
{MatchLabels:map[string]string{k8s.foo: bar,k8s.io.kubernetes.pod.namespace: default,},MatchExpressions:[]LabelSelectorRequirement{},}
)

If using yaml output, it's fine.

Cilium Version

Client: 1.14.4 87dd2b6 2023-11-09T15:02:52-05:00 go version go1.20.11 linux/amd64
Daemon: 1.14.4 87dd2b6 2023-11-09T15:02:52-05:00 go version go1.20.11 linux/amd64

Kernel Version

5.15.0-1049-aws #54~20.04.1-Ubuntu SMP Fri Oct 6 22:04:33 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Kubernetes Version

v1.24.17-eks-4f4795d

Sysdump

No response

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentCilium agent related.area/cliImpacts the command line interface of any command in the repository.help-wantedPlease volunteer for this by adding yourself as an assignee!info-completedThe GH issue has received a reply from the authorkind/bugThis is a bug in the Cilium logic.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.sig/policyImpacts whether traffic is allowed or denied based on user-defined policies.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions