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


Specify a directory as an input source package

Implements a source function by reading configuration and writing to STDOUT.


# print to stdout configuration from DIR/ formatted as an input source
kpt fn source DIR/
# run a function using explicit sources and sinks
kpt fn source DIR/ |
  kpt fn run --image |
  kpt fn sink DIR/


kpt fn source [DIR...]

  Path to a package directory.  Defaults to stdin if unspecified.

Next Steps

  • Learn about functions concepts like sources, sinks, and pipelines.
  • See more examples of source functions in the functions catalog.