Update valueAdd.md

Signed-off-by: Joe Bowbeer <joe.bowbeer@gmail.com>
This commit is contained in:
Joe Bowbeer
2022-03-10 15:22:57 -08:00
parent f67dd5bbbd
commit dcdefca70e

View File

@@ -116,9 +116,9 @@ are only partially complete. kustomize will add projectIds to
these below.
The boilerplate in these instances could be eliminated
by making a _custom generator_, but that's for
by making a _custom generator_, but that's for a
different tutorial, and with only three instances here
it's not worth it the effort.
it's not worth the effort.
<!-- @policyMembers @testAgainstLatestRelease -->
```
@@ -174,7 +174,7 @@ EOF
Make a transformer configuration file.
The transformer used is called `AddValueTransformer`. It's
The transformer used is called `ValueAddTransformer`. It's
intended to implement the 'add' operation of
[IETF RFC 6902 JSON]. The add operation is simple declaration
of what value to add, and a powerful syntax for specifying where
@@ -187,7 +187,7 @@ in the middle (e.g. `/volume/data` becomes `/volume/projectId/data`).
At the time of writing, this transformer has no dedicated keyword
in the kustomization file to hold it's config. This means
in the kustomization file to hold its config. This means
the config must live in its own file:
<!-- @defineSetProjectTransformer @testAgainstLatestRelease -->
@@ -212,7 +212,7 @@ targets:
EOF
```
This file defined both the value to insert, and a list of places to
This file defined both the value to insert and a list of places to
insert it. It's saying 1) _take the name of the directory I am in_ and
2) use the name as a namespace on all objects in scope, and 3) add that
name to the 2nd position in the file path found in the `spec/resourceRef/external`
@@ -227,7 +227,7 @@ or a path to an encapsulating kustomization root. The latter approach
allows any number of transformers to be loaded as a group from a local
or remote location.
Here an example of the latter case that uses a kustomization file to
Here's an example of the latter case that uses a kustomization file to
list pointers to transformer configs, although in this case it
references only one transformer config.