Skip to content

Add more information to version command (I want to see the image) #4102

@christianh814

Description

@christianh814

What would you like to be added:

There's currently no way to know what the default image is based on the version alone

$ kind  version 
kind v0.31.0 go1.25.5 linux/amd64

I would be nice to "bulk up" the version command to output more information with either -o yaml or -o json

Example:

$ kind version -o json
{
  "kind": {
    "version": "v0.31.0",
    "gitCommit": "somelongstring",
    "platform": "linux/amd64",
    "defaultImage": "kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f"
  }
}

This will also provide a way to add information in the future.

This puts it in par with kubectl version -o json

Why is this needed:

Instead of creating sub-commands for superfluous information, it would be good to have it in one location and version seems like the obvious choice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions