Implement support for digests in imageTags

This commit adds a new field to imageTags transformer
so that digests can be used instead of image tags if needed.

Closes https://github.com/kubernetes-sigs/kustomize/issues/326
This commit is contained in:
Alexandr Burdiyan
2018-09-07 17:45:25 +02:00
parent f7def79764
commit 5401bd367b
6 changed files with 60 additions and 17 deletions

View File

@@ -247,8 +247,12 @@ vars:
# image: nginx:1.7.9
#```
# one can change the tag of myimage to v1 and the tag of nginx to 1.8.0 with the following:
#
# It also supports digests. If digest is present newTag is ignored.
imageTags:
- name: mycontainerregistry/myimage
newTag: v1
- name: nginx
newTag: 1.8.0
- name: alpine
digest: sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3