Merge pull request #82535 from demobox/patch-1

'imagetag' -> 'image' in edit set command examples

Kubernetes-commit: 1f2e9cfe4eb8949836886e7273e6266756617537
This commit is contained in:
Kubernetes Publisher 2019-09-11 21:25:08 -07:00
commit 242d795625
1 changed files with 2 additions and 2 deletions

View File

@ -169,13 +169,13 @@ then the container image would be `foo:1bb359ccce344ca5d263cd257958ea035c978fd3`
A simple way to push an image that was just built without manually updating the image tags is to A simple way to push an image that was just built without manually updating the image tags is to
download the [kustomize standalone](https://github.com/kubernetes-sigs/kustomize/) tool and run download the [kustomize standalone](https://github.com/kubernetes-sigs/kustomize/) tool and run
`kustomize edit set imagetag` command to update the tags for you. `kustomize edit set image` command to update the tags for you.
**Example:** Set the latest git commit SHA as the image tag for `foo` images. **Example:** Set the latest git commit SHA as the image tag for `foo` images.
{% sample lang="yaml" %} {% sample lang="yaml" %}
```bash ```bash
kustomize edit set imagetag foo:$(git log -n 1 --pretty=format:"%H") kustomize edit set image foo:$(git log -n 1 --pretty=format:"%H")
kubectl apply -f . kubectl apply -f .
``` ```
{% endmethod %} {% endmethod %}