Commit 8ace373
committed
test(fn-eval): update fn eval E2E tests to use :latest set-namespace
This PR updates the kpt fn eval E2E test suite to use the :latest version of the set-namespace function.
Key changes:
- Add isUnknown() heuristic in internal/kptops/set-namespace.go to detect Custom Resources by API group, skipping namespace for unknown CRs without existing namespace
- Update Kptfile references from pinned set-namespace image tags to :latest (ghcr.io/kptdev/krm-functions/set-namespace:latest)
- Update .expected/ golden files to reflect new :latest behavior
- Add .gitattributes to force LF for *.sh and CRLF for *.bat/*.cmd, preventing bash errors in CI
- Update internal/fnruntime/runner_test.go to align with new function behavior
Part 1 of 2 from the original PR #4420 (fn-eval portion).
Signed-off-by: Surbhi <agarwalsurbhi1807@gmail.com>1 parent bebee38 commit 8ace373
47 files changed
Lines changed: 524 additions & 75 deletions
File tree
- e2e/testdata/fn-eval
- fn-config-file-in-pkg/.expected
- fn-config-file/pkg/.expected
- fn-success-with-stderr/pkg/.expected
- fnconfig-missing-name/pkg/.expected
- include-meta-resources-v1alpha1/.expected
- include-meta-resources-v1alpha2/.expected
- include-meta-resources/.expected
- invalid-fn-config-file/pkg/.expected
- missing-fn-config/.expected
- multiple-fn-config-one-file/pkg/.expected
- no-op/.expected
- non-krm-resource/.expected
- out-of-place-dir/.expected
- out-of-place-fnchain-stdout/.expected
- out-of-place-fnchain-unwrap/.expected
- output-to-stdout/.expected
- preserve-comments/.expected
- preserve-order-include-meta-resources/.expected
- preserve-order-null-values/.expected
- save-fn
- custom-pkg-path/.expected
- image/.expected
- match-selector/.expected
- no-save-when-fail/.expected
- override-fn/.expected
- preserve-kptfile-comments/.expected
- validator-type/.expected
- selectors
- basicpipeline/.expected
- exclude/.expected
- out-of-place-fnchain-unwrap/.expected
- selectors-with-exclude/.expected
- short-image-path/.expected
- simple-function-symlink/.expected
- simple-function-with-tag/.expected
- simple-function/.expected
- subpkg-exclude-fn-config-by-default/.expected
- subpkg-has-samename-subdir/.expected
- subpkg-include-meta-resources/.expected
- subpkgs-with-krmignore/.expected
- subpkgs/.expected
- wasm-function/.expected
- internal
- fnruntime
- kptops
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
0 commit comments