This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.
Export
Auto-generating function pipelines for different workflow orchestrators
Exports a workflow pipeline that runs kpt functions alongside necessary configurations.
Examples
# read functions from DIR, run them against it as one step.
# write the generated GitHub Actions pipeline to main.yaml.
kpt fn export DIR/ --output main.yaml --workflow github-actions
# discover functions in FUNCTIONS_DIR and run them against resource in DIR.
# write the generated Cloud Build pipeline to stdout.
kpt fn export DIR/ --fn-path FUNCTIONS_DIR/ --workflow cloud-build
Synopsis
kpt fn export DIR/ [--fn-path FUNCTIONS_DIR/] --workflow ORCHESTRATOR [--output OUTPUT_FILENAME]
DIR:
Path to a package directory.
FUNCTIONS_DIR:
Read functions from the directory instead of the DIR/.
ORCHESTRATOR:
Supported orchestrators are:
- github-actions
- cloud-build
- gitlab-ci
- jenkins
- tekton
- circleci
OUTPUT_FILENAME:
Specifies the filename of the generated pipeline. If omitted, the default
output is stdout
Next Steps
- Get detailed tutorials on how to use
kpt fn export
from the Export a Workflow guide.
Last modified August 18, 2020: Deduplicate kpt function docs (#923) (8a9a3587)