Skip to content

Commit

Permalink
docs(kustomize): add reject option enhancement for replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
bugoverdose committed Aug 16, 2023
1 parent a8847ee commit 26534ef
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,29 @@ reject:
- kind: StatefulSet
```

Moreover, when the selected target is going to be transformed during the kustomization process,
you can use either the original or the transformed resource id to reject it.

For example, the name of the target could be changed because of the `nameSuffix` field, as below:

```yaml
nameSuffix: -dev
```

You can use the original target name to prevent it from going through any replacement.

```yaml
reject:
- name: deployment
```

Alternatively, using the transformed name with the suffix will produce the same behaviour.

```yaml
reject:
- name: deployment-dev
```

#### Delimiter

This field is intended to be used in conjunction with the `index` field for partial string replacement.
Expand Down

0 comments on commit 26534ef

Please sign in to comment.