generatorOptions

控制生成 ConfigMapSecret 的行为。

此外,在每个生成器中,还可以按每个资源级别设置 generatorOptions,具体使用方法请参见configMapGeneratorsecretGenerator

  1. apiVersion: kustomize.config.k8s.io/v1beta1
  2. kind: Kustomization
  3. generatorOptions:
  4. # labels to add to all generated resources
  5. labels:
  6. kustomize.generated.resources: somevalue
  7. # annotations to add to all generated resources
  8. annotations:
  9. kustomize.generated.resource: somevalue
  10. # disableNameSuffixHash is true disables the default behavior of adding a
  11. # suffix to the names of generated resources that is a hash of
  12. # the resource contents.
  13. disableNameSuffixHash: true