Skip to content

Commit 4d5cd8e

Browse files
authored
Update E2E CI to use the kpt image version from go.mod (#407)
Fixes a couple of tests to align with the latest version Signed-off-by: aravind.est <aravindhan.a@est.tech>
1 parent f0710bd commit 4d5cd8e

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/porch-e2e-ci-jobs.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 The Nephio Authors
1+
# Copyright 2025-2026 The Nephio 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.
@@ -113,11 +113,20 @@ jobs:
113113
with:
114114
go-version-file: go.mod
115115
cache: true
116+
- name: Get kpt version from go.mod
117+
id: kpt-version
118+
run: |
119+
KPT_VERSION=$(grep 'github.com/kptdev/kpt' go.mod | awk '{print $2}')
120+
if [ -z "$KPT_VERSION" ]; then
121+
echo "Warning: Could not extract kpt version from go.mod, using fallback"
122+
KPT_VERSION="v1.0.0-beta.59.2"
123+
fi
124+
echo "version=${KPT_VERSION}" >> $GITHUB_OUTPUT
116125
- name: Install kpt
117126
uses: jaxxstorm/action-install-gh-release@v2.1.0
118127
with:
119128
repo: kptdev/kpt
120-
tag: v1.0.0-beta.59
129+
tag: ${{ steps.kpt-version.outputs.version }}
121130
chmod: 0755
122131
- name: Install Kind
123132
uses: helm/kind-action@v1

test/e2e/cli/testdata/rpkg-push/config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ commands:
134134
- put-value=Updated Test Package Description
135135
stderr: |
136136
[RUNNING] "ghcr.io/kptdev/krm-functions-catalog/search-replace:v0.2.0" on 1 resource(s)
137-
Results:
138-
[info] info.description: Mutated field value to "Updated Test Package Description"
137+
[Results]: [info] info.description: Mutated field value to "Updated Test Package Description"
139138
- args:
140139
- porchctl
141140
- rpkg

test/e2e/cli/testdata/rpkg-unready/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ commands:
3838
- --
3939
- by-path=status.conditions[0].status
4040
- put-value=True
41-
stderr: "[RUNNING] \"ghcr.io/kptdev/krm-functions-catalog/search-replace:v0.2.0\" on 1 resource(s)\n Results:\n [info] status.conditions[0].status: Mutated field value to \"\\\"True\\\"\"\n"
41+
stderr: "[RUNNING] \"ghcr.io/kptdev/krm-functions-catalog/search-replace:v0.2.0\" on 1 resource(s)\n[Results]: [info] status.conditions[0].status: Mutated field value to \"\\\"True\\\"\"\n"
4242
- args:
4343
- porchctl
4444
- rpkg

0 commit comments

Comments
 (0)