Skip to content

Unexpected EOF error when trying to create a job from a cronjob in kubectl 1.32+ #1800

@bscaleb

Description

@bscaleb

What happened: With kubectl client 1.32+ and server 1.33.5, running kubectl create job test --from=cronjob/any-cronjob fails with an error such as

error: failed to create job: the object provided is unrecognized (must be of type Job): unexpected EOF (6b3873000a0f0a0862617463682f763112034a6f6212efbfbd0e0aefbfbd ...)

What you expected to happen: This command should create a Job resource.

How to reproduce it (as minimally and precisely as possible): Attempt to create a Job from a CronJob via cli with the specified kube client and server versions.

Anything else we need to know?:
My AI assistant thinks it is due to protobuf serialization failure and may be related to the Go version used to build these. 1.22.x is used for 1.31.13, where this works, and 1.23.x is used for 1.32.

Environment:

  • Kubernetes client and server versions (use kubectl version): Client: 1.32+ (tested on 1.32, 1.33, 1.34). Server: v1.33.5-eks-3cfe0ce
  • Cloud provider or hardware configuration: AWS EKS on EC2
  • OS (e.g: cat /etc/os-release): MacOS Sequoia 15.7.2 on M1 darwin/arm64

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions