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

Source

Specify a directory as an input source package

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

Examples

# 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 gcr.io/example.com/my-fn |
  kpt fn sink DIR/

Synopsis

kpt fn source [DIR...]

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.