79564031

Date: 2025-04-09 10:03:16
Score: 1
Natty:
Report link

Works now also with patches transformator. If you use patches9602 transformator, you will get this warning:

# Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.

kustomization.yaml

patches:
  - target:
      group: kustomize.toolkit.fluxcd.io
      version: v1beta1
      kind: Kustomization
      name: name-i-dont-want
    path: patches/kustomization-managed.yaml

patches/kustomization-managed.yaml

- op: replace
  path: /metadata/name
  value: name-i-like

Thanks to @Mafor for the initial solution! My version is just an update, using kubectl v1.27.0.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mafor
  • Low reputation (0.5):
Posted by: snukone