File tree Expand file tree Collapse file tree
image-pull-policy-always/.expected
image-pull-policy-if-not-present/.expected
image-pull-policy-if-not-present Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
1515
1616set -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 "
1919export EXPORT_ENV=" export_env_value"
2020
2121kpt fn source \
Original file line number Diff line number Diff line change 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.
1313# limitations under the License.
1414
1515testType : eval
16- image : ghcr.io/kptdev/krm-functions-catalog/foo:v0.1
16+ image : ghcr.io/kptdev/krm-functions-catalog/foo:latest
1717sequential : true
1818imagePullPolicy : Always
1919exitCode : 1
Original file line number Diff line number Diff line change 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
1818KRM_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
Original file line number Diff line number Diff line change 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.
1313# limitations under the License.
1414
1515testType : eval
16- image : ghcr.io/kptdev/krm-functions-catalog/bar:v0.1
16+ image : ghcr.io/kptdev/krm-functions-catalog/bar:latest
1717sequential : true
1818imagePullPolicy : IfNotPresent
1919exitCode : 1
Original file line number Diff line number Diff line change 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
1818KRM_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
Original file line number Diff line number Diff line change 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.
1313# limitations under the License.
1414
1515testType : eval
16- image : ghcr.io/kptdev/krm-functions-catalog/drop-comments:v0.1
16+ image : ghcr.io/kptdev/krm-functions-catalog/drop-comments:latest
Original file line number Diff line number Diff line change 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
1818KRM_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
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ metadata:
44 name: app
55pipeline:
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
Original file line number Diff line number Diff line change 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
1818KRM_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
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ metadata:
44 name: app
55pipeline:
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
You can’t perform that action at this time.
0 commit comments