diff options
| author | Agorgianitis Loukas <agorg_louk@icloud.com> | 2021-12-16 22:05:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-16 21:05:46 +0100 |
| commit | f1ebca5e02bf1973d80f2aa98cc953e70a3269fe (patch) | |
| tree | 03a190b8c4c18c37a475eaca4d1adf7178092979 /pkg/argocd | |
| parent | da58411eea9f98811f55cc10b92c150385e2d9ae (diff) | |
fix: Invalid image reference format when using digest strategy with helm charts (#317)
* fix: Invalid reference format when using digest strategy with helm charts
Signed-off-by: Agorgianitis Loukas <agorglouk@gmail.com>
* Rename image.GetFullTag() to image.GetTagWithDigest() for clarity
* Add unit tests for image.GetTagWithDigest()
Diffstat (limited to 'pkg/argocd')
| -rw-r--r-- | pkg/argocd/argocd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/argocd/argocd.go b/pkg/argocd/argocd.go index 16fde53..4183c0c 100644 --- a/pkg/argocd/argocd.go +++ b/pkg/argocd/argocd.go @@ -376,7 +376,7 @@ func SetHelmImage(app *v1alpha1.Application, newImage *image.ContainerImage) err mergeParams = append(mergeParams, p) } if hpImageTag != "" { - p := v1alpha1.HelmParameter{Name: hpImageTag, Value: newImage.ImageTag.String(), ForceString: true} + p := v1alpha1.HelmParameter{Name: hpImageTag, Value: newImage.GetTagWithDigest(), ForceString: true} mergeParams = append(mergeParams, p) } } |
