Skip to content

Commit

Permalink
Add name prefix/suffix fields to API docs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Apr 9, 2024
1 parent 73b1b4b commit f21f65e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/spec/v1/kustomizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,22 @@ should be applied to all the Kustomization's resources. It has two optional fiel
on an object. Any existing annotation will be overridden if it matches with a key
in this map.

### Name Prefix and Suffix

`.spec.namePrefix` and `.spec.nameSuffix` are optional fields used to specify a prefix and suffix
to be added to the names of all the resources in the Kustomization.

```yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: app
spec:
# ...omitted for brevity
namePrefix: "prefix-"
nameSuffix: "-suffix"
```

### Patches

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

0 comments on commit f21f65e

Please sign in to comment.