Skip to content

Commit f21f65e

Browse files
committed
Add name prefix/suffix fields to API docs
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 73b1b4b commit f21f65e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/spec/v1/kustomizations.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,22 @@ should be applied to all the Kustomization's resources. It has two optional fiel
401401
on an object. Any existing annotation will be overridden if it matches with a key
402402
in this map.
403403

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+
404420
### Patches
405421

406422
`.spec.patches` is an optional list used to specify [Kustomize `patches`](https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patches/)

0 commit comments

Comments
 (0)