From 77ca434ec378d607fee83dc790eb8981d5beb4e7 Mon Sep 17 00:00:00 2001 From: Benjamin Danon Date: Sun, 29 Mar 2020 00:15:47 +0100 Subject: [PATCH 1/2] Fix the newName field name in the example --- .../kubectl/docs/book/pages/app_management/container_images.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/kubectl/docs/book/pages/app_management/container_images.md b/staging/src/k8s.io/kubectl/docs/book/pages/app_management/container_images.md index 8c5c63e6622..aa17f9c538e 100644 --- a/staging/src/k8s.io/kubectl/docs/book/pages/app_management/container_images.md +++ b/staging/src/k8s.io/kubectl/docs/book/pages/app_management/container_images.md @@ -40,7 +40,7 @@ tag. |-----------|--------------------------------------------------------------------------|----------| --- | | `name` | Match images with this image name| `name: nginx`| | | `newTag` | Override the image **tag** or **digest** for images whose image name matches `name` | `newTag: new` | `nginx:old` -> `nginx:new` | -| `newName` | Override the image **name** for images whose image name matches `name` | `newImage: nginx-special` | `nginx:old` -> `nginx-special:old` | +| `newName` | Override the image **name** for images whose image name matches `name` | `newName: nginx-special` | `nginx:old` -> `nginx-special:old` | {% method %} From c39c64ffdaf677d09c412e7447b5bf400394068b Mon Sep 17 00:00:00 2001 From: Benjamin Danon Date: Sun, 29 Mar 2020 00:23:47 +0100 Subject: [PATCH 2/2] Fix the newName field name in the page --- .../book/pages/app_customization/customizing_pod_templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/kubectl/docs/book/pages/app_customization/customizing_pod_templates.md b/staging/src/k8s.io/kubectl/docs/book/pages/app_customization/customizing_pod_templates.md index 4b4637552f4..695556b72d6 100644 --- a/staging/src/k8s.io/kubectl/docs/book/pages/app_customization/customizing_pod_templates.md +++ b/staging/src/k8s.io/kubectl/docs/book/pages/app_customization/customizing_pod_templates.md @@ -38,7 +38,7 @@ in a base by specifying the `images` field in the `kustomization.yaml`. |-----------|--------------------------------------------------------------------------|----------| --- | | `name` | Match images with this image name| `name: nginx`| | | `newTag` | Override the image **tag** or **digest** for images whose image name matches `name` | `newTag: new` | `nginx:old` -> `nginx:new` | -| `newName` | Override the image **name** for images whose image name matches `name` | `newImage: nginx-special` | `nginx:old` -> `nginx-special:old` | +| `newName` | Override the image **name** for images whose image name matches `name` | `newName: nginx-special` | `nginx:old` -> `nginx-special:old` | {% sample lang="yaml" %} **Input:** The `kustomization.yaml` file @@ -111,7 +111,7 @@ spec: {% panel style="info", title="Replacing Images" %} -`newImage` allows an image name to be replaced with another arbitrary image name. e.g. you could +`newName` allows an image name to be replaced with another arbitrary image name. e.g. you could call your image `webserver` or `database` and replace it with `nginx` or `mysql`. For more information on customizing images, see [Container Images](../app_management/container_images.md).