Skip to content

Commit 9e7a6c2

Browse files
authored
[ST] Don't change image in case we are using SHA digest in Deployment file (#12458)
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
1 parent 4727e35 commit 9e7a6c2

File tree

1 file changed

+6
-0
lines changed
  • systemtest/src/main/java/io/strimzi/systemtest/utils

1 file changed

+6
-0
lines changed

systemtest/src/main/java/io/strimzi/systemtest/utils/StUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public static boolean isAllowOnCurrentEnvironment(String envVariableForCheck) {
112112
* @return Updated docker image with a proper registry, org, tag
113113
*/
114114
public static String changeOrgAndTag(String image) {
115+
// in case that the image in the file contains `@sha256:`, we want to test exactly some digest and we
116+
// will skip configuring the other parts, so returning the image as is
117+
if (image.contains("@sha256:")) {
118+
return image;
119+
}
120+
115121
Matcher m = IMAGE_PATTERN_FULL_PATH.matcher(image);
116122
if (m.find()) {
117123
String registry = setImageProperties(m.group("registry"), Environment.STRIMZI_REGISTRY);

0 commit comments

Comments
 (0)