You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spec/v1/kustomizations.md
+16
Original file line number
Diff line number
Diff line change
@@ -401,6 +401,22 @@ should be applied to all the Kustomization's resources. It has two optional fiel
401
401
on an object. Any existing annotation will be overridden if it matches with a key
402
402
in this map.
403
403
404
+
### Name Prefix and Suffix
405
+
406
+
`.spec.namePrefix`and `.spec.nameSuffix` are optional fields used to specify a prefix and suffix
407
+
to be added to the names of all the resources in the Kustomization.
408
+
409
+
```yaml
410
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
411
+
kind: Kustomization
412
+
metadata:
413
+
name: app
414
+
spec:
415
+
# ...omitted for brevity
416
+
namePrefix: "prefix-"
417
+
nameSuffix: "-suffix"
418
+
```
419
+
404
420
### Patches
405
421
406
422
`.spec.patches`is an optional list used to specify [Kustomize `patches`](https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patches/)
0 commit comments