From 11c13bb2ee79e6ddf1e0aa7d438aea62077ae267 Mon Sep 17 00:00:00 2001 From: phantomjinx Date: Tue, 12 Dec 2023 12:56:05 +0000 Subject: [PATCH 1/2] fix: Adds support for sha256 tag checksums #96 --- pkg/resources/container.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/resources/container.go b/pkg/resources/container.go index a72671af46..be9dcf766a 100644 --- a/pkg/resources/container.go +++ b/pkg/resources/container.go @@ -2,6 +2,7 @@ package resources import ( "os" + "strings" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/intstr" @@ -62,5 +63,10 @@ func getImageFor(tag string, imageRepository string) string { } } + if strings.HasPrefix(tag, "sha256:") { + // tag is a sha checksum tag + return repository + "@" + tag + } + return repository + ":" + tag } From 2b22a00334c4a1c458f921ca6e2cc996c7adc569 Mon Sep 17 00:00:00 2001 From: phantomjinx Date: Tue, 12 Dec 2023 13:31:37 +0000 Subject: [PATCH 2/2] fix: Corrects docker build command --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index c8c277a149..a60674b7e8 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,7 @@ image: docker build -t $(IMAGE):$(VERSION) \ --build-arg HAWTIO_ONLINE_IMAGE_NAME=$(HAWTIO_ONLINE_IMAGE_NAME) \ --build-arg HAWTIO_ONLINE_VERSION=$(HAWTIO_ONLINE_VERSION) \ + . #--- #