This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.

Fetch-k8s-schema

Fetch the OpenAPI schema from the cluster

The fetch-k8s-schema command downloads the OpenAPI schema from the cluster given by the context. It prints the result to stdout.

Examples

# print the schema for the cluster given by the current context
kpt live fetch-k8s-schema

# print the schema after formatting using a named context
kpt live fetch-k8s-schema --context=myContext --pretty-print

Synopsis

kpt live fetch-k8s-schema [flags]

Flags

--pretty-print
  Format the output before printing

Last modified July 16, 2020: Fix all markdownlint issues (e20b22cd)