Skip to content

Incoherent tags on JobStatus.Conditions #118698

@MikeSpreitzer

Description

@MikeSpreitzer

What happened?

I used https://github.com/kcp-dev/kcp/tree/v0.11.0/cmd/crd-puller to extract a CRD for the jobs resource, and then tried to submit that CRD to an apiserver that does not have jobs built in. I got the following complaint (which is reasonable).

Error from server (Forbidden): error when creating "/Users/mspreitz/go/src/github.com/kcp-dev/edge-mc/config/kube/exports/namespaced/apiresourceschema-jobs.batch.yaml": apiresourceschemas.apis.kcp.io "v230615-d48020c8.jobs.batch" is forbidden: [spec.versions[0].schema.openAPIV3Schema.properties[status].properties[conditions].x-kubernetes-list-type: Invalid value: "atomic": must be map if x-kubernetes-list-map-keys is non-empty]

And indeed you can see this at https://github.com/kubernetes/api/blob/v0.27.3/batch/v1/types.go#L351-L353 and earlier versions. The listType=atomic has been there for two years.

What did you expect to happen?

I expected no complaint about a CRD extracted from a reviewed and accepted resource.

How can we reproduce it (as minimally and precisely as possible)?

See above.

Anything else we need to know?

No response

Kubernetes version

Details release-1.27 and several earlier.

Cloud provider

Details N/A

OS version

Details N/A

Install tools

Details N/A

Container runtime (CRI) and version (if applicable)

Details N/A

Related plugins (CNI, CSI, ...) and versions (if applicable)

Details N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/appsCategorizes an issue or PR as relevant to SIG Apps.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions