Skip to content

Commit 2e5db29

Browse files
authored
Merge pull request kubernetes#89618 from bndn/patch-1
Fix the Images newName field example in the Kubectl Book
2 parents 0a91893 + c39c64f commit 2e5db29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

staging/src/k8s.io/kubectl/docs/book/pages/app_customization/customizing_pod_templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ in a base by specifying the `images` field in the `kustomization.yaml`.
3838
|-----------|--------------------------------------------------------------------------|----------| --- |
3939
| `name` | Match images with this image name| `name: nginx`| |
4040
| `newTag` | Override the image **tag** or **digest** for images whose image name matches `name` | `newTag: new` | `nginx:old` -> `nginx:new` |
41-
| `newName` | Override the image **name** for images whose image name matches `name` | `newImage: nginx-special` | `nginx:old` -> `nginx-special:old` |
41+
| `newName` | Override the image **name** for images whose image name matches `name` | `newName: nginx-special` | `nginx:old` -> `nginx-special:old` |
4242

4343
{% sample lang="yaml" %}
4444
**Input:** The `kustomization.yaml` file
@@ -111,7 +111,7 @@ spec:
111111

112112

113113
{% panel style="info", title="Replacing Images" %}
114-
`newImage` allows an image name to be replaced with another arbitrary image name. e.g. you could
114+
`newName` allows an image name to be replaced with another arbitrary image name. e.g. you could
115115
call your image `webserver` or `database` and replace it with `nginx` or `mysql`.
116116

117117
For more information on customizing images, see [Container Images](../app_management/container_images.md).

staging/src/k8s.io/kubectl/docs/book/pages/app_management/container_images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tag.
4040
|-----------|--------------------------------------------------------------------------|----------| --- |
4141
| `name` | Match images with this image name| `name: nginx`| |
4242
| `newTag` | Override the image **tag** or **digest** for images whose image name matches `name` | `newTag: new` | `nginx:old` -> `nginx:new` |
43-
| `newName` | Override the image **name** for images whose image name matches `name` | `newImage: nginx-special` | `nginx:old` -> `nginx-special:old` |
43+
| `newName` | Override the image **name** for images whose image name matches `name` | `newName: nginx-special` | `nginx:old` -> `nginx-special:old` |
4444

4545
{% method %}
4646

0 commit comments

Comments
 (0)