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

Sink

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.

Examples

# 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 sink [DIR]

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.