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

Fix

Fix a local package which is using deprecated features.

Fix reads the local package, modifies the package to use the latest kpt features and fixes any deprecated feature traces.

Examples

Example fix commands

# print the fixes which will be made to the package without actually modifying
# resources
kpt pkg fix . --dry-run
# fix the package if it is using deprecated features
kpt pkg fix .

Synopsis

kpt pkg fix LOCAL_PKG_DIRECTORY [flags]

Args:
  LOCAL_PKG_DIRECTORY:
    Local directory with kpt package. Directory must exist and
    contain a Kptfile.

Flags:
  --dry-run
    if set, the fix command shall only print the fixes which will be made to the
    package without actually fixing/modifying the resources.


Last modified July 28, 2020: Regenerate docs (3a694b8a)