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


Specify a directory as an output sink package

Implements a sink function by reading STDIN and writing configuration.

Sink will not prune / delete files for delete resources because it only knows about files for which it sees input resources.


# run a function using explicit sources and sinks
kpt fn source DIR/ |
  kpt fn run --image |
  kpt fn sink DIR/


kpt fn sink [DIR]

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

Next Steps

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