Skip to content

Commit 76ae216

Browse files
authored
Update e2e test image tags from pinned versions to :latest (#4591)
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
1 parent ad02e11 commit 76ae216

12 files changed

Lines changed: 40 additions & 38 deletions

File tree

e2e/testdata/fn-eval/function-env/.expected/exec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
# Copyright 2021 The kpt Authors
2+
# Copyright 2021, 2026 The kpt Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
1515

1616
set -eo pipefail
1717

18-
IMAGE_TAG="ghcr.io/kptdev/krm-functions-catalog/printenv:v0.1"
18+
IMAGE_TAG="ghcr.io/kptdev/krm-functions-catalog/printenv:latest"
1919
export EXPORT_ENV="export_env_value"
2020

2121
kpt fn source \

e2e/testdata/fn-eval/image-pull-policy-always/.expected/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021 The kpt Authors
1+
# Copyright 2021, 2026 The kpt Authors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
16+
image: ghcr.io/kptdev/krm-functions-catalog/foo:latest
1717
sequential: true
1818
imagePullPolicy: Always
1919
exitCode: 1

e2e/testdata/fn-eval/image-pull-policy-always/.expected/setup.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
# Copyright 2021 The kpt Authors
2+
# Copyright 2021, 2026 The kpt Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -17,9 +17,9 @@ set -eo pipefail
1717

1818
KRM_FN_RUNTIME="${KRM_FN_RUNTIME:=docker}"
1919

20-
# Function ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 prints "foo" to stderr and
21-
# function ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 prints "bar" to stderr.
22-
# We intentionally tag a wrong image as ghcr.io/kptdev/krm-functions-catalog/foo:v0.1, since we
20+
# Function ghcr.io/kptdev/krm-functions-catalog/foo:latest prints "foo" to stderr and
21+
# function ghcr.io/kptdev/krm-functions-catalog/bar:latest prints "bar" to stderr.
22+
# We intentionally tag a wrong image as ghcr.io/kptdev/krm-functions-catalog/foo:latest, since we
2323
# expect the correct image to be pulled and override the wrong image.
24-
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
25-
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
24+
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/bar:latest
25+
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/bar:latest ghcr.io/kptdev/krm-functions-catalog/foo:latest

e2e/testdata/fn-eval/image-pull-policy-if-not-present/.expected/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021 The kpt Authors
1+
# Copyright 2021, 2026 The kpt Authors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
16+
image: ghcr.io/kptdev/krm-functions-catalog/bar:latest
1717
sequential: true
1818
imagePullPolicy: IfNotPresent
1919
exitCode: 1

e2e/testdata/fn-eval/image-pull-policy-if-not-present/.expected/setup.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
# Copyright 2021 The kpt Authors
2+
# Copyright 2021, 2026 The kpt Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -17,8 +17,9 @@ set -eo pipefail
1717

1818
KRM_FN_RUNTIME="${KRM_FN_RUNTIME:=docker}"
1919

20-
# Function ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 prints "foo" to stderr and
21-
# function ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 prints "bar" to stderr.
22-
# We intentionally tag a wrong image as pull ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
23-
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
24-
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
20+
# Function ghcr.io/kptdev/krm-functions-catalog/foo:latest prints "foo" to stderr and
21+
# function ghcr.io/kptdev/krm-functions-catalog/bar:latest prints "bar" to stderr.
22+
# We intentionally tag foo as ghcr.io/kptdev/krm-functions-catalog/bar:latest so
23+
# the locally cached bar image is actually foo (wrong image).
24+
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/foo:latest
25+
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/foo:latest ghcr.io/kptdev/krm-functions-catalog/bar:latest

e2e/testdata/fn-eval/preserve-comments/.expected/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021 The kpt Authors
1+
# Copyright 2021, 2026 The kpt Authors
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515
testType: eval
16-
image: ghcr.io/kptdev/krm-functions-catalog/drop-comments:v0.1
16+
image: ghcr.io/kptdev/krm-functions-catalog/drop-comments:latest

e2e/testdata/fn-render/image-pull-policy-always/.expected/setup.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
# Copyright 2021 The kpt Authors
2+
# Copyright 2021, 2026 The kpt Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -17,9 +17,9 @@ set -eo pipefail
1717

1818
KRM_FN_RUNTIME="${KRM_FN_RUNTIME:=docker}"
1919

20-
# Function ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 prints "foo" to stderr and
21-
# function ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 prints "bar" to stderr.
22-
# We intentionally tag a wrong image as ghcr.io/kptdev/krm-functions-catalog/foo:v0.1, since we
20+
# Function ghcr.io/kptdev/krm-functions-catalog/foo:latest prints "foo" to stderr and
21+
# function ghcr.io/kptdev/krm-functions-catalog/bar:latest prints "bar" to stderr.
22+
# We intentionally tag a wrong image as ghcr.io/kptdev/krm-functions-catalog/foo:latest, since we
2323
# expect the correct image to be pulled and override the wrong image.
24-
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
25-
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
24+
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/bar:latest
25+
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/bar:latest ghcr.io/kptdev/krm-functions-catalog/foo:latest

e2e/testdata/fn-render/image-pull-policy-always/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: app
55
pipeline:
66
mutators:
7-
- image: pull ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
7+
- image: pull ghcr.io/kptdev/krm-functions-catalog/foo:latest

e2e/testdata/fn-render/image-pull-policy-if-not-present/.expected/setup.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/bash
2-
# Copyright 2021 The kpt Authors
2+
# Copyright 2021, 2026 The kpt Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -17,8 +17,9 @@ set -eo pipefail
1717

1818
KRM_FN_RUNTIME="${KRM_FN_RUNTIME:=docker}"
1919

20-
# Function ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 prints "foo" to stderr and
21-
# function ghcr.io/kptdev/krm-functions-catalog/bar:v0.1 prints "bar" to stderr.
22-
# We intentionally tag a wrong image as pull ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
23-
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
24-
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/foo:v0.1 ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
20+
# Function ghcr.io/kptdev/krm-functions-catalog/foo:latest prints "foo" to stderr and
21+
# function ghcr.io/kptdev/krm-functions-catalog/bar:latest prints "bar" to stderr.
22+
# We intentionally tag foo as ghcr.io/kptdev/krm-functions-catalog/bar:latest so
23+
# the locally cached bar image is actually foo (wrong image).
24+
${KRM_FN_RUNTIME} pull ghcr.io/kptdev/krm-functions-catalog/foo:latest
25+
${KRM_FN_RUNTIME} tag ghcr.io/kptdev/krm-functions-catalog/foo:latest ghcr.io/kptdev/krm-functions-catalog/bar:latest

e2e/testdata/fn-render/image-pull-policy-if-not-present/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: app
55
pipeline:
66
mutators:
7-
- image: pull ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
7+
- image: pull ghcr.io/kptdev/krm-functions-catalog/foo:latest

0 commit comments

Comments
 (0)