Files
kustomize/site/content/en/docs/Reference/API/Kustomization File/buildMetadata.md
Nick 26165a86b7 Add buildMetadata task and ref (#5511)
* Add buildMetadata task and ref

Move build metadata tasks, draft buildMetadata reference

Clean up buildMetadata ref

Add managed by label task

Add local non-generated task

Add local generated resource

Add remote generator task

Clean up tasks and ref

Add local transformer annotation example

Add local and remote transformer example

* Address PR feedback and general cleanup
2024-01-27 00:12:39 +01:00

881 B

title, linkTitle, type, weight, description
title linkTitle type weight description
buildMetadata buildMetadata docs 3 Specify options for including information about the build in annotations or labels.

apiVersion: kustomize.config.k8s.io/v1beta1

See the Tasks section for examples of how to use the buildMetadata field.

buildMetadata

BuildMetadata specifies options for adding kustomize build information to resource labels or annotations.


  • buildMetadata ([]string)

    List of strings used to toggle different build options. The strings can be one of three builtin options that add metadata to each resource about how the resource was built. It is possible to set one or all of these options in the kustomization file.

    These options are:

    • managedByLabel
    • originAnnotations
    • transformerAnnotations