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

@@ -176,4 +176,8 @@ type ImageTag struct {
// NewTag is the value to use in replacing the original tag.
NewTag string `json:"newTag,omitempty" yaml:"newTag,omitempty"`
// Digest is the value used to replace the original image tag.
// If digest is present NewTag value is ignored.
Digest string `json:"digest,omitempty" yaml:"digest,omitempty"`
}