Skip to content

Commit

Permalink
fix: Adds support for sha256 tag checksums #96
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomjinx committed Dec 12, 2023
1 parent e2c7b9f commit a515d3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/resources/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package resources

import (
"os"
"strings"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/intstr"
Expand Down Expand Up @@ -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
}

0 comments on commit a515d3f

Please sign in to comment.