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

Transformer Catalog

Catalog of Transformer Functions.

A transformer mutates resources, by an action such as changing a namespace or the image used in a pod, without adding new resources.

Transformer Functions

Image Args Description Example Source Toolchain
gcr.io/kpt-functions/mutate-psp [Demo] Mutates PodSecurityPolicy objects by setting spec.allowPrivilegeEscalation to false. Source Typescript SDK
N/A Sets the namespace field of all configs passed in. Source Starlark Runtime
gcr.io/kpt-functions/set-namespace Sets the namespace field of all configs passed in. Source Go Library
gcr.io/kubeflow-images-public/kustomize-fns/remove-namespace Removes the namespace field of cluster-scoped configs. Source Go Library
gcr.io/kpt-functions/label-namespace [Demo] Adds a label to all Namespaces. Source Typescript SDK
gcr.io/kpt-functions/helm-template Render chart templates locally using helm template. Example Source Typescript SDK
gcr.io/kustomize-functions/example-tshirt Sets cpu and memory reservations on all containers for Resources annotated with tshirt size. Source Go Library
gcr.io/kpt-functions/annotate-config [Demo] Adds an annotation to all configs. Source Typescript SDK

Next Steps

  • Learn more ways of using the kpt fn command from the reference doc.

Last modified November 9, 2020: docs: fix broken links for fn (a863150c)